- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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() ...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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() ...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Trouble with tweaking AudioListExample's audiolistscene.xml source URL
Works like a charm. Thanks so much. Never would have figured that out on my own.