calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2012
01:42 PM
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:
Thanks for any help anyone can offer.
Kenny
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
27 REPLIES 27

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2012
02:00 PM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
06:39 AM
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...
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...
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
06:44 AM
Re: Poster screen images not loading from web
BTW, nice site Endless! Looks like you've been developing for Roku for a while!
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
06:53 AM
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?

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
07:37 AM
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...?
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
07:54 AM
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!!
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!!
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
07:56 AM
Re: Poster screen images not loading from web
Actually, the docs are very clear, so I think I can implement the log component... 🙂
calvaryftl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
08:09 AM
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....

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012
10:22 AM
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)