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: 
loughlin
Visitor

Setting up live stream on roku channel

Hi there every one I hope some one can help me with this one as I been at it for near 3 days now and im getting now where, I have setup a
Private Channel for beta testing before I go live with the Public Channel. now so far i got ever thing to work as far as playing mp4 files but when it comes to live streaming I keep hitting a wall.

so far I have tried using m3u8 files and others but the player just can seem to read them so dose any one have the right format to use to stream some thing like mp3 and also ustream.tv streams.

below is a copy of the xml file I have been trying to use is any one can help you be saving me from going bold as im pulling my hair out

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<resultLength>1</resultLength>
<endIndex>1</endIndex>
<item sdImg="http://telstar-telecom.com/roku/images/newtech.jpg" hdImg="http://telstar-telecom.com/roku/images/newtech.jpg">
<title>Live Stream</title>
<contentId>10001</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://telstar-telecom.com/roku/videos/test4.m3u8</streamUrl>
</media>
<synopsis>Live Feed Test</synopsis>
<genres>Clip</genres>
<runtime>500</runtime>
</item>
</feed>
0 Kudos
7 REPLIES 7
RokuChris
Roku Employee
Roku Employee

Re: Setting up live stream on roku channel

The first thing I notice is that the stream URL in your playlist is not valid

#EXTMP4
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,ttp://skyscape.sky.com/skynewsradio/RADIO/news.mp3
#EXT-X-ENDLISTC


You're missing a letter. It should be http://skyscape.sky.com/skynewsradio/RADIO/news.mp3

It also looks like this is an audio only stream, so you might want to experiment with bypassing the HLS playlist and playing it directly with roAudioPlayer. I tried that method and it worked fine.
0 Kudos
loughlin
Visitor

Re: Setting up live stream on roku channel

hi there thanks for the reply just fixed the bug and updated the code like you said but still no joy and im using this file to test streaming audio u mind me asking what way u use roplayer and i take it i just replace HLS code with roplayer and once again thank you for trying to help me out as it has me near mad
0 Kudos
belltown
Roku Guru

Re: Setting up live stream on roku channel

Your m3u8 file looks very strange. I've not heard of the #EXTMP4 and #EXT-X-ENDLISTC tags, and in any case you have no media URI specified anywhere in the file. The #EXTINF:10,ttp://skyscape.sky.com/skynewsradio/RADIO/news.mp3 tag merely specifies the duration and title of the media segment, not its actual location, which must be specified on a separate line, e.g.:

#EXTM3U
#EXTINF:-1,http://skyscape.sky.com/skynewsradio/RADIO/news.mp3
http://skyscape.sky.com/skynewsradio/RADIO/news.mp3


The above m3u8 will play on media players such as VLC, but I doubt it will play on the Roku, since the Roku m3u8 playlists are intended to play video HLS streams, not mp3 audio streams. As RokuChris said, you'd have better luck using the roAudioPlayer component to play it.
0 Kudos
belltown
Roku Guru

Re: Setting up live stream on roku channel

The SDK has an example, audioapp, that demonstrates use of roAudioPlayer.

Also, I posted some instructions in http://forums.roku.com/viewtopic.php?f=34&t=45561#p330653 on how to modify the MRSS app to play mp3 audio streams. You may find some of that code useful in your app, particularly the code in ShowAudioScreen.brs in Step 5.
0 Kudos
loughlin
Visitor

Re: Setting up live stream on roku channel

hi there thank you so much may I as how you would write a xml fle to use the roAudioPlayer component or what way wood you write this file and guys I am so great full for all your help so far also can I add that this is only to set out sreaming live audio but i also need it to stream my ustreams.tv channel
0 Kudos
loughlin
Visitor

Re: Setting up live stream on roku channel

May I add that im not a big coder and konw a bit to get by but thats it if I had some one to do this for me I be even willing to pay for there help or work on this, :mrgreen:
0 Kudos
loughlin
Visitor

Re: Setting up live stream on roku channel

for the love of all that is sweet can any one help me with this as I have been setting at my pc now forthree days flat out at this and it has me to the point of crying I cant find a work around please please help me and the BrightScript is going right over my head please dose any one know who would take this on for me and fix it or have a very very easy fix please :oops: :cry:
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.