Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
jeremyk
Level 7

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
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
Level 7

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