Forum Discussion

thomasferraro's avatar
thomasferraro
Binge Watcher
5 years ago
Solved

Trouble with tweaking AudioListExample's audiolistscene.xml source URL

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.

 

  • 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()
    ...
  • renojim's avatar
    renojim
    Community Streaming Expert

    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()
    ...
    • thomasferraro's avatar
      thomasferraro
      Binge Watcher

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