Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
calvaryftl
Level 7

Re: Poster screen images not loading from web

Oh, ok. Well there was only one loop running, but when I ran the app, nothing showed in the debugger. I had it set to print whatever message it received, if of type "roSystemLogEvent". Any idea why nothing would show?

I had it in my code that displays a poster screen. The same section that is not displaying the images. That is the correct spot, right? I assume it is because the poster screen should be the one making the http calls for the images.
0 Kudos
TheEndless
Level 9

Re: Poster screen images not loading from web

"calvaryftl" wrote:
Oh, ok. Well there was only one loop running, but when I ran the app, nothing showed in the debugger. I had it set to print whatever message it received, if of type "roSystemLogEvent". Any idea why nothing would show?

I had it in my code that displays a poster screen. The same section that is not displaying the images. That is the correct spot, right? I assume it is because the poster screen should be the one making the http calls for the images.

That sounds like the right place, yeah. Can you share the 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
Level 7

Re: Poster screen images not loading from web

Do you mind if I email it to you?
0 Kudos
calvaryftl
Level 7

Re: Poster screen images not loading from web

I have confirmed that this image loads:

http://media.calvaryftl.org/api/ROKU/im ... orship.png

while this one does not:

http://media.calvaryftl.org/api/ROKU/im ... hd/web.png

Here is a code snippet. It has the HD image hard coded at the moment. When I changed it to the image worship.png, it worked:

if (request.AsyncGetToString())

while (true)
msg = wait(0, port)
if (type(msg) = "roUrlEvent")
code = msg.GetResponseCode()
if (code = 200)
array = CreateObject("roArray",10,true)
json = ParseJSON(msg.GetString())
for each item in json.Items
info = {
ShortDescriptionLine1: item.name
address: item.address
phone: item.phone
times: item.times
SDPosterUrl: item.SDPosterUrl
HDPosterUrl: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png"
}
array.push(info)

end for

return array
endif

else if (event = invalid)
request.AsyncCancel()
endif
end while
endif
0 Kudos
calvaryftl
Level 7

Re: Poster screen images not loading from web

Any thoughts? Anyone?
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Poster screen images not loading from web

All your problem URLs work fine for me. Maybe the problem isn't with the images themselves...

screen = CreateObject("roPosterScreen")
screen.SetListStyle("arced-landscape")
screen.SetContentList([
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/worship.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/sandalfoot.jpg" }
])
screen.Show()
0 Kudos
calvaryftl
Level 7

Re: Poster screen images not loading from web

Thanks for checking Chris. I don't think it is either. It's very odd how a different png will work across the web, but not the ones we created. I'm about ready to give up and just put them in the package. I'd love to not do that though to keep the package size down...
0 Kudos
TheEndless
Level 9

Re: Poster screen images not loading from web

My results are the same as Chris's. Both of your example images work fine for me both on the poster screen and the grid screen (directly referencing the URLs you posted), so that would suggest you have a problem elsewhere 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
Level 7

Re: Poster screen images not loading from web

Thanks again to both of you. Endless, I just emailed you my code. I hope you'll be able to check it out for me and figure out what I've missed. Smiley Happy
0 Kudos
calvaryftl
Level 7

SOLVED!!! Re: Poster screen images not loading from web

CASE SENSITIVITY!

My server is on a Windows machine, so I didn't realize that case matters. The roAssociativeArray is apparently case sensitive, so I had to make sure my paths matched perfectly with regards to case. Once I did that it worked!

Thanks for the help guys!

I hope this thread will help someone else down the road....
0 Kudos