HTTP Live Streaming Now Available For Developers

Roku's free SDK allows developers to build channels and applications and publish them to the Roku Channel Store. Register for the Developer Program at http://www.roku.com/developer

Moderators: RokuDouglas, RokuRyan, RokuJamesL, RokuKen, RokuChris, RokuJoel

HTTP Live Streaming Now Available For Developers

Postby RokuPatrick » Wed Apr 28, 2010 11:15 am

Greetings everyone,

We've discussed it a little bit as people have asked here in the forums, but I'd like to make it a little more official. Roku is now including support for HTTP Live Streaming (HLS) on the Roku player.

If you're not familiar with HLS, it is the protocol proffered by Apple for delivering streamed content (live or otherwise) to the iPad and iPhone. In a nutshell, HLS is a protocol that breaks the video stream into multiple segments (typically 2 to 10 seconds each) and can provide multiple bitrates for each segment. If you combine segments with multiple bitrates, the player can adapt to available bandwidth and switch streams as needed to keep the video going without the need to rebuffer. Since it is playlist based, multiple pieces of content can be stitched together seamlessly. This could allow you to do any number of things including inserting advertisements at the beginning or in the middle of programming.

You can read more about the protocol at the following two links:

We will be delivering more documentation and examples, but if you are already supporting HLS for different platforms, it should be relatively straightforward to support it on Roku. Simply specify “hls” as the StreamFormat used with the roVideoScreen object and the URL for the stream should point the M3U8 file that defines the HLS configuration.

Support for HLS is included in 2.5 build 385 and later. This build is currently a manual update, so you'll need to check for updates in order to download this version of firmware. There are still a couple of bugs that we're sorting out, and we expect the automatic update with the final HLS implementation to be rolled out within the next two weeks.

Happy coding,

Patrick
Patrick
Roku Developer Program Manager
User avatar
RokuPatrick
 
Posts: 3807
Joined: Tue Aug 17, 2004 5:46 pm
Location: Saratoga, CA

Re: HTTP Live Streaming Now Available For Developers

Postby kc8pql » Wed Apr 28, 2010 5:03 pm

Support for HLS is included in 2.5 build 385 and later.

Does that mean that HLS is supported in the 2.6 builds some of us are currently beta testing?
User avatar
kc8pql
** Valued Community Member **
 
Posts: 8050
Joined: Fri Jan 23, 2009 3:54 pm
Location: US

Re: HTTP Live Streaming Now Available For Developers

Postby RokuPatrick » Wed Apr 28, 2010 5:23 pm

kc8pql wrote:
Support for HLS is included in 2.5 build 385 and later.

Does that mean that HLS is supported in the 2.6 builds some of us are currently beta testing?



It's in there, but not as mature as what is in 2.5b385. Changes from the 2.5 branch will be merged into the 2.6 branch before 2.6 is released. If you want to test HLS, I recommend 2.5
Patrick
Roku Developer Program Manager
User avatar
RokuPatrick
 
Posts: 3807
Joined: Tue Aug 17, 2004 5:46 pm
Location: Saratoga, CA

Re: HTTP Live Streaming Now Available For Developers

Postby Saqqara » Thu Apr 29, 2010 9:09 am

Is it permissible for this to be discussed in the general forum? There are several threads with developers interacting with the community there on various projects.
Saqqara
 
Posts: 276
Joined: Mon Dec 08, 2008 11:46 am

Re: HTTP Live Streaming Now Available For Developers

Postby kc8pql » Thu Apr 29, 2010 10:38 am

Saqqara wrote:Is it permissible for this to be discussed in the general forum? There are several threads with developers interacting with the community there on various projects.

Don't see why not. This forum is also open to the public.
User avatar
kc8pql
** Valued Community Member **
 
Posts: 8050
Joined: Fri Jan 23, 2009 3:54 pm
Location: US

Re: HTTP Live Streaming Now Available For Developers

Postby campbellwang » Sun May 02, 2010 3:05 am

Hi Patrick,

Can you post a couple of test .m3u8 URLs that we can all use to test our implementations of this feature.

If anyone else has any that work please post here also.

Thanks
campbellwang
 
Posts: 199
Joined: Wed Aug 26, 2009 1:23 pm

Re: HTTP Live Streaming Now Available For Developers

Postby RokuMarkn » Sun May 02, 2010 8:02 am

Apple provides an HLS sample at http://devimages.apple.com/iphone/sampl ... opall.m3u8

--Mark
User avatar
RokuMarkn
Roku Engineering
 
Posts: 1053
Joined: Mon Jun 09, 2008 9:20 am

Re: HTTP Live Streaming Now Available For Developers

Postby RokuPatrick » Sun May 02, 2010 10:03 am

Wowza (http://www.wowzamedia.com) also has a sample feed being served from their server deployed through Amazon EC2:

http://ec2-174-129-153-104.compute-1.am ... ylist.m3u8
Patrick
Roku Developer Program Manager
User avatar
RokuPatrick
 
Posts: 3807
Joined: Tue Aug 17, 2004 5:46 pm
Location: Saratoga, CA

Re: HTTP Live Streaming Now Available For Developers

Postby -LD » Mon May 03, 2010 12:31 pm

http://iphone.akamai.com/ - offers some HTTP Live Streaming demos.
-LD
 
Posts: 1604
Joined: Fri Dec 19, 2008 11:27 am

Re: HTTP Live Streaming Now Available For Developers

Postby PRIZM » Thu May 13, 2010 7:27 pm

I have a question I have the HLS feeds going on IPad/IPhone/Ipod Touch running flawless but these same feeds do not play on the Roku box ver. 2.5 Build 388 it just starts to load then quits and reloads the info page. Any suggestions. I am using a XML to load from and here is some code of the item. Im not really sure on the runtime so I just set it to 5000.. any help would be great If some one else has got this going and knows the specs so far without the docs.... Thanks PRIZM...

P.S I would give the full URL but I might have issues with the networks for doing so sorry.

<item sdImg="http://xxx.xxxxxx.xxx/videoplayer/images/espntvlogo.jpg" hdImg="http://xxx.xxxxxx.xxx/videoplayer/images/espntvlogo.jpg">
<title>ESPN</title>
<contentId>10002</contentId>
<contentType>Live TV</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>700</streamBitrate>
<streamUrl>http://xxxxxxxxxx.xxxxxx.xxx/apple/espn/espn.m3u8</streamUrl>
</media>
<synopsis>ESPN Sports All The Time!</synopsis>
<genres>Sports</genres>
<runtime>5000</runtime>
</item>
PRIZM
 
Posts: 19
Joined: Thu May 13, 2010 7:15 pm

Re: HTTP Live Streaming Now Available For Developers

Postby campbellwang » Fri May 14, 2010 2:57 am

I love your question Prizim especially the idea behind your links.
I haven't looked into HLS yet but I also want to grab ipad / iPhone .m3u8 streams.
How did you grab them. I'm working on a windows machine.
Pm me if you don't want to post in the forums.
campbellwang
 
Posts: 199
Joined: Wed Aug 26, 2009 1:23 pm

Re: HTTP Live Streaming Now Available For Developers

Postby campbellwang » Sun May 16, 2010 12:49 am

Okay. None of the demos above seem to work.

I need a proper unrestricted live video feed to test.

Please can someone post a feed they have tested on the Roku DVP, that works.

I tried :http://217.146.95.164:8081/ch5aiphone.m3u8 but this does not wok either.
campbellwang
 
Posts: 199
Joined: Wed Aug 26, 2009 1:23 pm

Re: HTTP Live Streaming Now Available For Developers

Postby PRIZM » Sun May 16, 2010 2:45 am

Well the Roku guys say that HLS feeds work with ver 2.5 build version 285 and later I think they are at build 288 that's mine on my box any way. Well I have tested alot of live hls streams and I have them running flawless and even doing bandwidth detection as well on actual apple devices. The catch is I have not been able to get a feed going on the roku box as of yet. Roku needs to post at least the .m3u8 encode specs that they have actually tested and got working till they get the full docs together and some insight on some other settings like the Runtime setting and how this applies. If it is a live feed it should have a way to not have a time length. This would be really helpfull info from RoKu. Now if any other developer has actually got a hls stream to play please PM me or post some info here. Roku says all that is needed is the <streamFormat>hls</streamFormat> to be specified to function oh and the .h264/aac .m3u8 segmented stream URL to the feed or shoud I say the directory where the .m3u8 segments are located.

Campbellwang Just to answer youR question I'm not just grabbing the feed I'm actually encoding to h.264/aac baseline level 3.0 segmented .ts files that are written to a directory on my server. The actual .m3u8 file references all the .ts segments that make up the stream. I'm sure you know how to get that part working if not just look at the Apple http streaming Documents. Campellwang I will PM you soon on a test feed to help you out but The feeds I have are flawless on IPhone/IPad/IPod Touch. These same HLS feeds will not load the player when called in the roku script. When the script calls for the .m3u8 feed it trys to load the player then just closes and reloads the page that has the feed discription. It's very strange.

If anyone wants to try my code in this thread please try it and see what happends I would love to hear more from roku on this while they are getting the full documentation together.

Alright guys we need to get some replies going back and forth and we can get this done... Including you guys over there at RoKu...

Thanks
PRIZM'
PRIZM
 
Posts: 19
Joined: Thu May 13, 2010 7:15 pm

Re: HTTP Live Streaming Now Available For Developers

Postby PRIZM » Sun May 16, 2010 3:01 am

Oh yea here is a unrestricted HLS Feed from NASA provided by Akamai that I can post and this link works on Apple devices. Iphone/Ipad/Ipod Touch so this should work with RoKu. It is a bandwidth detection feed. meaning it has 4 levels of separate bit rates that the nasatv_all.m3u8 references. Connect with edge and then with WiFi on a apple device and you will see the difference..

http://iphoned5.akamai.com.edgesuite.ne ... v_all.m3u8

Happy Coding Guys.

Thanks
PRIZM
PRIZM
 
Posts: 19
Joined: Thu May 13, 2010 7:15 pm

Re: HTTP Live Streaming Now Available For Developers

Postby campbellwang » Sun May 16, 2010 4:00 am

Cheers I will test this later.

[UPDATE] I can not get to work either: http://iphoned5.akamai.com.edgesuite.net/mhbarron/nasatv/nasatv_all.m3u8

All we are doing is passing the URL to the player as described above.

ROKU!? ANYONE!?
campbellwang
 
Posts: 199
Joined: Wed Aug 26, 2009 1:23 pm

Next

Return to Roku Developer Program

Who is online

Users browsing this forum: No registered users and 0 guests