greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012
08:29 AM
Selecting proper stream from .m3u8
I have video's being hosted on Brightcove. For any given video that provide a master m3u8 playlist pointing to multiple streams of different bandwidths. If I point the roku to this playlist directly, it just takes the first stream in the playlist and plays it. In my case this is a problem because the first stream in the list happens to be the lowest bandwidth stream and it looks terrible on a HD screen. Is there a way to have the Roku choose the right stream?
In the event that isn't possible, I have begun parsing the playlist and pulling out the individual streams and populating the episode object's StreamUrls, StreamQualities ("HD" or "SD"), and StreamBitrates. The problem is that when I give the roku (hooked up to an HD TV via HDMI) an episode with an HD stream and a SD stream, it shows the SD feed instead of the HD one. Why is this?
How can I make the Roku play the appropriate stream?
In the event that isn't possible, I have begun parsing the playlist and pulling out the individual streams and populating the episode object's StreamUrls, StreamQualities ("HD" or "SD"), and StreamBitrates. The problem is that when I give the roku (hooked up to an HD TV via HDMI) an episode with an HD stream and a SD stream, it shows the SD feed instead of the HD one. Why is this?
How can I make the Roku play the appropriate stream?
4 REPLIES 4

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012
09:05 AM
Re: Selecting proper stream from .m3u8
Be sure to set the SwitchingStrategy content metadata attribute. An issue was introduced in the latest firmware that causes the behavior you described if the SwitchingStrategy isn't explicitly set.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012
09:06 AM
Re: Selecting proper stream from .m3u8
How do you set it? What object do you set this on? What should it be set to?


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012
09:13 AM
Re: Selecting proper stream from .m3u8
"greengiant83" wrote:
How do you set it? What object do you set this on? What should it be set to?
switchingStrategy is an attribute of the content-meta-data structure that defines your video. Possible values are called out in the Component Reference: http://sdkdocs.roku.com/display/RokuSDK ... +Meta-Data
greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012
09:22 AM
Re: Selecting proper stream from .m3u8
Awesome. Thank you