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

Live Streaming

We still can not get live streaming working.
Can someone show me some code and a file that works. Thanks

we tried these files:

Thanks
CDNOne.com | CDNTwo.com
0 Kudos
4 Replies
Highlighted
Level 7

Re: Live Streaming

"campbellwang" wrote:
We still can not get live streaming working.
Can someone show me some code and a file that works. Thanks

we tried these files:

http://akamedia2.lsops.net/live/smil:ru ... ylist.m3u8

http://akamedia2.lsops.net/live/smilSmiley Tonguer ... ylist.m3u8

http://akamedia2.lsops.net/clients/smil ... ylist.m3u8

http://akamedia2.lsops.net/live/nasatv_ ... ylist.m3u8


The first URL in your list returns an error.

The other 3 I was able to play without much trouble. #2 and #3 took a couple tries and buffered for quite a while before they started playing, but #4 started up pretty quickly.
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
Highlighted
Level 7

Re: Live Streaming

Nowhereman please can you provide me with some code or settings you used. It just doesn't work for us.
Thanks buddy.
CDNOne.com | CDNTwo.com
0 Kudos
Highlighted
Level 7

Re: Live Streaming

"campbellwang" wrote:
Nowhereman please can you provide me with some code or settings you used. It just doesn't work for us.
Thanks buddy.


Sub Main()
vid = {
StreamUrls: ["http://akamedia2.lsops.net/live/nasatv_en.sdp/playlist.m3u8"]
streamBitrates: [0]
streamQualities: ["SD"]
streamFormat: "hls"
}

screen = CreateObject("roVideoScreen")
screen.SetMessagePort(CreateObject("roMessagePort"))
screen.SetContent(vid)
screen.Show()

while true
msg = wait(0, screen.GetMessagePort())

if type(msg) = "roVideoScreenEvent" then
if msg.isScreenClosed()
exit while
end if
end if
end while
End Sub
twitter:nowhereman
http://www.thenowhereman.com/roku
http://www.thenowhereman.com/netflix
0 Kudos
Highlighted
Level 7

Re: Live Streaming

Thank You. I will ask my guy to give that a whirl.
CDNOne.com | CDNTwo.com
0 Kudos