Roku Developer Program

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

Re: HLS ABS Streaming how to.

Well STUPID ME

Case sensitive was the issue MY XML was HLS in brs file was hls so it would set it as a MP4 and just play the first file in the SMIL list. I have to figure out how to tell the player its a movie then a live stream so it does not show the counter when you pause it and not show the "start from the beginning option on my live channels.
0 Kudos
railfan
Level 7

Re: HLS ABS Streaming how to.

Also it does not matter if its High rez to low rez or the other way around it starts with the lowest stream and goes up.

Mike
0 Kudos
RokuJoel
Roku Employee
Roku Employee

Re: HLS ABS Streaming how to.

The player will always start with the lower bitrates stream and then move up, that is just the way it works.

- Joel
0 Kudos
destruk
Level 10

Re: HLS ABS Streaming how to.

UCASE and LCASE in brightscript should resolve any case sensitivity issues you may have.
0 Kudos
railfan
Level 7

Re: HLS ABS Streaming how to.

It works very good..

Now I just need to learn how to do

<contentType>Live</contentType>
<contentType>movie</contentType>

I want the "live" channels to just have a watch live or Play link in the screen with the information and not have the "Resume playing" link but want that for the movies "video on demand" stuff.

I think I need to get the content types configured correctly for that to work correct?
0 Kudos
davidlgood
Level 8

Re: HLS ABS Streaming how to.

railfan -- any updates to this project? Did you figure it out, and if so... what did you do?
0 Kudos
MMSAdmin
Level 7

Re: HLS ABS Streaming how to.

Hi guys,

I'm also having issues where Roku is stuck on the first entry of my SMIL file and does not "adapt" to any higher bitrates. Unlike Railfan, I have "hls" in lowercase in my XML file, see below:

<feed>
<resultLength>1></resultLength>
<endIndex>1</endIndex>
<item sdImg="http://xxx.jpg" hdImg="http://xxx.jpg">
<title>My Test Live Broadcast</title>
<contentId/>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>

<media>
<streamQuality>SD</streamQuality>
<streamBitrate>0</streamBitrate>
<streamUrl>
http://xxx:1935/xxx/smil:test.smil/playlist.m3u8
</streamUrl>
<SwitchingStrategy>full-adaption</SwitchingStrategy>
</media>
<synopsis>My Test Live Broadcast</synopsis>
<genres>Livestream</genres>
<runtime/>
</item>
</feed>


We are using the "VideoPlayer" sourcecode example from the SDK with no modifications to the showfeed.brs file. Can you kindly advise what you added to the showfeed.brs file that made the switching within your SMIL file work?

Many thanks for any help.
0 Kudos
TheEndless
Level 10

Re: HLS ABS Streaming how to.

"MMSAdmin" wrote:
Hi guys,

I'm also having issues where Roku is stuck on the first entry of my SMIL file and does not "adapt" to any higher bitrates. Unlike Railfan, I have "hls" in lowercase in my XML file, see below:

<feed>
<resultLength>1></resultLength>
<endIndex>1</endIndex>
<item sdImg="http://xxx.jpg" hdImg="http://xxx.jpg">
<title>My Test Live Broadcast</title>
<contentId/>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>

<media>
<streamQuality>SD</streamQuality>
<streamBitrate>0</streamBitrate>
<streamUrl>
http://xxx:1935/xxx/smil:test.smil/playlist.m3u8
</streamUrl>
<SwitchingStrategy>full-adaption</SwitchingStrategy>
</media>
<synopsis>My Test Live Broadcast</synopsis>
<genres>Livestream</genres>
<runtime/>
</item>
</feed>


We are using the "VideoPlayer" sourcecode example from the SDK with no modifications to the showfeed.brs file. Can you kindly advise what you added to the showfeed.brs file that made the switching within your SMIL file work?

Many thanks for any help.

You've misspelled "adaptation" in your SwitchingStrategy. First thing to try would be correcting that.
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)
0 Kudos
MMSAdmin
Level 7

Re: HLS ABS Streaming how to.

This is now resolved. Corrected the misspelled "adaption" in the XML file and added the following code to the ShowFeed.brs file to enable adaptation

If item.StreamFormat="hls"
item.SwitchingStrategy="full-adaptation"
End If

ABR working perfectly now both live and on-demand.
0 Kudos