Forum Discussion

wpinkman's avatar
wpinkman
Visitor
11 years ago

roPosterScreen / roSlideshow can't load Instagram images

My channel, Rokagram, started having trouble yesterday. I think I've debugged it down to the fact that the URL's returned from the Instagram API for images are now all HTTPS, but it's not just that. The CDN they are hosted on seems to cause problems for components like roPosterScreen and roSlideShow even if I call SetCertificatesFile and InitClientCertificates on them. The same image URL in question loads fine in a browser. I even tried an experiment of using roUrlTransfer to download the image into "tmp://" and then using the temp file as the posterUrl and that worked! Here's some sample code that demonstrates the problem.

Running the code shows a poster screen with one item, but the cover image never loads. I have a photo.. but I can't figure out how to attach it to a forum post. Trust me.. it doesn't work.


Sub Main()

port = CreateObject("roMessagePort")
screen = CreateObject("roPosterScreen")

screen.SetMessagePort(port)
screen.SetCertificatesFile("common:/certs/ca-bundle.crt")
screen.InitClientCertificates()
screen.SetListStyle("arced-square")

posterUrl = "https://scontent.cdninstagram.com/hphotos-xaf1/t51.2885-15/s150x150/e15/11049316_1583549288528575_1352209504_n.jpg"
meta = {}
meta.HdPosterUrl = posterUrl
meta.SdPosterUrl = posterUrl

contentList = []
contentList.Push(meta)

screen.SetContentList(contentList)
screen.Show()

wait(0, port)

End Sub

15 Replies

Replies have been turned off for this discussion