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: 

Trouble with tweaking AudioListExample's audiolistscene.xml source URL

Jump to solution

Beginning Roku developer here. I am working on tweaking AudioListExample (https://github.com/rokudev/samples/tree/master/media/AudioListExample).

In audiolistscene.xml, I simply want to have

      m.readAudioContentTask.contenturi = "http://www.sdktestinglab.com/Tutorial/content/audiocontent.xml"

point to a different URL. When I change the URL to point to the same file on my own server

      m.readAudioContentTask.contenturi = "https://thomasferraro.org/audiocontent.xml"

the list does not populate in the app.

Any pointers/tips appreciated. Thanks.

 

0 Kudos
1 Solution

Accepted Solutions
Level 21

Re: Trouble with tweaking AudioListExample's audiolistscene.xml source URL

Jump to solution

For reasons no one will ever understand, Roku requires additional setup to handle HTTPS.  If you can change your URL to http://... just to test, do that.  To get the HTTPS URL to work you have to add code to contentreader.xml:

readInternet = createObject("roUrlTransfer")
readInternet.setUrl(m.top.contenturi)
readInternet.SetCertificatesFile("common:/certs/ca-bundle.crt")
readInternet.InitClientCertificates()
...

View solution in original post

2 Replies
Level 21

Re: Trouble with tweaking AudioListExample's audiolistscene.xml source URL

Jump to solution

For reasons no one will ever understand, Roku requires additional setup to handle HTTPS.  If you can change your URL to http://... just to test, do that.  To get the HTTPS URL to work you have to add code to contentreader.xml:

readInternet = createObject("roUrlTransfer")
readInternet.setUrl(m.top.contenturi)
readInternet.SetCertificatesFile("common:/certs/ca-bundle.crt")
readInternet.InitClientCertificates()
...

View solution in original post

Re: Trouble with tweaking AudioListExample's audiolistscene.xml source URL

Jump to solution

Works like a charm. Thanks so much. Never would have figured that out on my own.

0 Kudos