Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
campbellwang
Visitor

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 4
nowhereman
Visitor

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/smil:pr ... 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
campbellwang
Visitor

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
nowhereman
Visitor

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
campbellwang
Visitor

Re: Live Streaming

Thank You. I will ask my guy to give that a whirl.
CDNOne.com | CDNTwo.com
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.