Forum Discussion
RokuChris
14 years agoRoku Employee
"destruk" wrote:
If you obtain the type specifier from the url filename, then it can be a bit more dynamic for you.
ie
videoclip.streamformat=right(episode.streamurl,3)
You don't even have to change any xml for that. In order to work, the streamformat needs to be set after the streamurl has been.
Except that the HLS file extension is .m3u8 so that logic would get you a streamFormat = "3u8". And if the stream URL has any parameters on it, the result becomes unpredictable. The videoplayer example has support for specifying the streamFormat in the XML starting on line 142 of showFeed.brs.