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: 
jeremyk
Visitor

Trying to understand HLS

We are making the switch from multi-bitrate MP4s to HLS and have all the content ready, but trying to understand the code change in our XML structure. Currently we use the following:

<contentQuality>HD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>HD</streamQuality>
<streamBitrate>3000</streamBitrate>
<streamUrl>http://www.ourserver.com/somevideo_3000.mp4</streamUrl>
</media>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1800</streamBitrate>
<streamUrl>http://www.ourserver.com/somevideo_1800.mp4</streamUrl>
</media>
...etc


Is the Roku capable of parsing out the variable rates from the HLS much like iOS and Android? Meaning can we just pass it one streamURL and no Bitrates? Something like the following?

<contentQuality>HD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamUrl>http://www.ourserver.com/somevideo-playlist.m3u8</streamUrl>
</media>


Any help is appreciated. Thanks in advance!
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: Trying to understand HLS

"jeremyk" wrote:
Is the Roku capable of parsing out the variable rates from the HLS much like iOS and Android? Meaning can we just pass it one streamURL and no Bitrates? Something like the following?


Yes, you should always pass exactly one URL for HLS video. If the content has multiple variants, they should be defined in the HLS manifest, not in the content-meta-data.
0 Kudos
jeremyk
Visitor

Re: Trying to understand HLS

Turned out we just needed to pull <streamFormat>hls</streamFormat> out of the <media> block and it worked. Thanks for the help!
0 Kudos