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: 
thomasferraro
Binge Watcher

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
renojim
Community Streaming Expert

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()
...
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

2 REPLIES 2
renojim
Community Streaming Expert

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()
...
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
thomasferraro
Binge Watcher

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