Over the course of several months I have been able to put together a channel for live streaming. When the channel is selected I have the xml pointed to a script on my server that gathers the stream and converts it to create a m3u8 file. How is it possible to tell the roku where the stream resides? I guess I don’t understand how to direct the roku to the file location since I used the initial xml entry to start the script. I have tried to set the location thru a redirect but the roku seems to time out before it starts to stream.
Thanks
Not sure exactly what you are asking here, but if I was to guess I would say you should modify your server script to return the .m3u8 location when it runs, perhaps something like this would work in Brightscript:
scriptURL=xml.videos.video[0].ScriptURL
xfer=createobject("roURLTransfer")
xfer.seturl(scriptURL)
videoobject={}
videoObject.stream.streamURL=xfer.gettostring()
videoObject.StreamFormat="hls"
- Joel
