Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
calvaryftl
Visitor

Poster screen images not loading from web

I have a poster screen, and when I load images using pkg:// they load. However, I changed them to a web address, and now they won't load. I confirmed through debug print that the path that the associative array is getting is correct, and confirmed in a browser that the path is correct.

Am I missing something here? Any thoughts?

Here's where I'm setting the array:

 for each item in json.Items
info = {
ShortDescriptionLine1: item.name
address: item.address
phone: item.phone
times: item.times
SDPosterUrl: item.SDPosterUrl
HDPosterUrl: item.HDPosterUrl
}
array.push(info)
end for


Thanks for any help anyone can offer.

Kenny
0 Kudos
27 REPLIES 27
TheEndless
Channel Surfer

Re: Poster screen images not loading from web

Can you provide a URL of one of the images that won't load?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

Sure - here's one in both sd and hd:

http://media.calvaryftl.org/api/ROKU/im ... alfoot.jpg
http://media.calvaryftl.org/api/ROKU/im ... alfoot.jpg

Same images that used to work when in the local package...
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

BTW, nice site Endless! Looks like you've been developing for Roku for a while!
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

I just tried a different image (a png), and it worked. So we are redoing our images as png. Any idea why jpg would not work?
0 Kudos
TheEndless
Channel Surfer

Re: Poster screen images not loading from web

I've found that jpegs saved with the "Convert to sRGB" option enabled in Photoshop can often cause problems, but I'd expect them to fail locally, too, if that were the issue. If you add an roSystemLog component to your channel, and listen for "http.error" events, that might provide some insight.

For what it's worth, they load fine in a test channel on my end, so maybe there's a typo in the URL in your code...?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

That's interesting. We converted one back to png, and it doesn't load either. I know the path is correct, and have confirmed that another png which came with another sample app works fine when loaded from the same path on our server.

I'm not sure how to use the roSystemLog component. Could you post some example code to get me started? In the meantime, I'll check the docs and learn about it. Thanks!!
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

Actually, the docs are very clear, so I think I can implement the log component... 🙂
0 Kudos
calvaryftl
Visitor

Re: Poster screen images not loading from web

After putting the code in, I found it wasn't doing anything. So I read more, and it says that it requires a certain design pattern to work. Namely, only one event loop in the whole app. My app has one event loop per screen, so based on that I can only assume that it will not work....
0 Kudos
TheEndless
Channel Surfer

Re: Poster screen images not loading from web

"calvaryftl" wrote:
After putting the code in, I found it wasn't doing anything. So I read more, and it says that it requires a certain design pattern to work. Namely, only one event loop in the whole app. My app has one event loop per screen, so based on that I can only assume that it will not work....

You can have multiple event loops. I typically have a separate event loop per screen, so that's not an issue. The key point is that you can only have one event loop at a time, so if you have multiple components running at the same time (ex. springboard screen and audio player), you'll want them using the same message port, so you can process messages for both. So, if you have the system log running, too, then you'll want to make sure it's using the same port as the poster screen you're trying to debug.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.