jsmilovic
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2012
12:16 PM
Selecting the Best Stream
Hello,
I have a wowza HLS stream, I have 4 different streams depending on the bandwidth of the viewer, as this is also used on the web, mobile, etc. How would i determine which video url to load based on the users connection speed? Is there a method that returns the connection speed or something?? As I have 4 urls it would be nice to be able to correlate that with Rokus 4 stars
Thanks in advance!
I have a wowza HLS stream, I have 4 different streams depending on the bandwidth of the viewer, as this is also used on the web, mobile, etc. How would i determine which video url to load based on the users connection speed? Is there a method that returns the connection speed or something?? As I have 4 urls it would be nice to be able to correlate that with Rokus 4 stars
Thanks in advance!
2 REPLIES 2
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2012
12:21 PM
Re: Selecting the Best Stream
4 'stars' isn't asking for much bandwidth. Roku automatically selects the best stream.
If the stream bitrate equals:
0 = no dots
< 500 Kbps = 1 dot
< 800 Kbps = 2 dots
<1.1 Mbps = 3 dots
>= 1.1 Mbps = 4 dots
If the stream bitrate equals:
0 = no dots
< 500 Kbps = 1 dot
< 800 Kbps = 2 dots
<1.1 Mbps = 3 dots
>= 1.1 Mbps = 4 dots


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2012
12:28 PM
Re: Selecting the Best Stream
With HLS, you want to use a single URL that points to a single master playlist. That playlist should contain the URLs for all the variants of your stream. The firmware will handle stream selection and switching automatically.
From the Component Reference: http://sdkdocs.roku.com/display/RokuSDK ... ideoScreen
From the Component Reference: http://sdkdocs.roku.com/display/RokuSDK ... ideoScreen
When using HLS, the StreamUrls and StreamQualities array should each have exactly one element. If the HLS stream has only a single bitrate stream, the StreamBitrates array should contain one element specifying that bitrate. If the stream contains more than one variant stream at multiple bitrates, the StreamBitrates array should contain one element with a value of zero