Your Digital Media Has Never Looked So Good

 
saulpower
Topic Author
Posts: 50
Joined: Fri Jan 07, 2011 2:41 pm

Roku Poster Url Not Loading

Sun May 03, 2015 11:09 pm

So I've appropriately set a valid url (in the sense that I can open the image in a browser) for both the SDPosterUrl and HDPosterUrl in the content metadata. The Roku fails to load this image into any screen I try (roGridScreen, roPosterScreen, etc). All I get is "Image not available" text or a TV placeholder image on newer Rokus. The strange thing is I can take the same image file that the url is pointing to and include it in the channel package and it will load up fine. Is there some header or other bit that the Roku is expecting when requesting the image from the provided url? The test url I'm using right now is https://dl.dropboxusercontent.com/u/13209686/chromecast/headphones.png, and as you can see is being served by dropbox.
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: Roku Poster Url Not Loading

Sun May 03, 2015 11:24 pm

saulpower wrote:
So I've appropriately set a valid url (in the sense that I can open the image in a browser) for both the SDPosterUrl and HDPosterUrl in the content metadata. The Roku fails to load this image into any screen I try (roGridScreen, roPosterScreen, etc). All I get is "Image not available" text or a TV placeholder image on newer Rokus. The strange thing is I can take the same image file that the url is pointing to and include it in the channel package and it will load up fine. Is there some header or other bit that the Roku is expecting when requesting the image from the provided url? The test url I'm using right now is https://dl.dropboxusercontent.com/u/13209686/chromecast/headphones.png, and as you can see is being served by dropbox.

If you're using an "https" url then you need to call SetCertificatesFile on the screen object, e.g:

screen.SetCertificatesFile ("common:/certs/ca-bundle.crt")
https://github.com/belltown/
 
saulpower
Topic Author
Posts: 50
Joined: Fri Jan 07, 2011 2:41 pm

Re: Roku Poster Url Not Loading

Mon May 04, 2015 12:28 am

I have that set, it doesn't appear to be the issue.
 
User avatar
Komag
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

Re: Roku Poster Url Not Loading

Mon May 04, 2015 2:12 am

Dropbox links that worked for me in the past look like this:
https://www.dropbox.com/s/ie5uiazxsubxu ... e.mp3?dl=1

Try adding the ?dl=1 at the end
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: Roku Poster Url Not Loading

Mon May 04, 2015 8:19 am

The image link works fine in an roPosterScreen on my Rokus (it shows a picture of some headphones). I've tried it on an old Roku HD running the 3.1 firmware, and on a Roku 2XS with the 6.2 firmware. It may help to use roSystemLog to check for http errors:

Sub Main ()
    port = CreateObject ("roMessagePort")
    sl = CreateObject ("roSystemLog")
    sl.SetMessagePort (port)
    sl.EnableType ("http.error")
    sl.EnableType ("http.connect")
    ui = CreateObject ("roPosterScreen")
    ui.SetMessagePort (port)
    ui.SetCertificatesFile ("common:/certs/ca-bundle.crt")
    ui.SetContentList ([{
                        SDPosterUrl: "https://dl.dropboxusercontent.com/u/13209686/chromecast/headphones.png",
                        HDPosterUrl: "https://dl.dropboxusercontent.com/u/13209686/chromecast/headphones.png",
                        }])
    ui.Show ()
    While True
        msg = Wait (0, port)
        If Type (msg) = "roSystemLogEvent"
            info = msg.GetInfo ()
            If info.LogType = "http.error" Or info.LogType = "http.connect"
                Print "roSystemLogEvent. Url: "; info.Url
                Print "roSystemLogEvent. OrigUrl: "; info.OrigUrl
                Print "roSystemLogEvent. Method: "; info.Method
                Print "roSystemLogEvent. Status: "; info.Status
                Print "roSystemLogEvent. TargetIp: "; info.TargetIp
                Print "roSystemLogEvent. HttpCode: "; info.HttpCode
                Print
            EndIf
        EndIf
    End While
End Sub
https://github.com/belltown/
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: Roku Poster Url Not Loading

Mon May 04, 2015 10:20 am

Note that there is a long standing bug on the roGridScreen where it doesn't support HTTPs posters, even if you set the certificates file. That may be the issue you're running into, in which case, you could download them to tmp:/ first.
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)
 
User avatar
wpinkman
Posts: 36
Joined: Mon Sep 09, 2013 10:36 am
Location: Silicon Valley
Contact:

Re: Roku Poster Url Not Loading

Thu May 07, 2015 8:43 am

--andy (channel: Rokagram)
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: Roku Poster Url Not Loading

Thu May 07, 2015 10:07 am

wpinkman wrote:

It doesn't appear to be related. I haven't had any problems accessing that url using roPosterScreen from my Rokus. I haven't tried it from roGridScreen though.
https://github.com/belltown/
 
saulpower
Topic Author
Posts: 50
Joined: Fri Jan 07, 2011 2:41 pm

Re: Roku Poster Url Not Loading

Sat May 09, 2015 11:54 pm

I decided to implement the suggested workaround of downloading the images and saving them to tmp:/.

Who is online

Users browsing this forum: No registered users and 4 guests