Setting up live stream on roku channel

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, RokuKen, RokuRyan, RokuJamesL, RokuChris, RokuJoel

Setting up live stream on roku channel

Postby loughlin » Sat Jun 02, 2012 12:49 pm

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>
loughlin
 
Posts: 13
Joined: Sat Jun 02, 2012 12:07 pm

Re: Setting up live stream on roku channel

Postby RokuChris » Sat Jun 02, 2012 12:52 pm

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

Code: Select all
#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.
User avatar
RokuChris
 
Posts: 1097
Joined: Mon Aug 30, 2010 1:45 pm

Re: Setting up live stream on roku channel

Postby loughlin » Sat Jun 02, 2012 1:17 pm

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
loughlin
 
Posts: 13
Joined: Sat Jun 02, 2012 12:07 pm

Re: Setting up live stream on roku channel

Postby belltown » Sat Jun 02, 2012 1:21 pm

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.:

Code: Select all
#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.
Last edited by belltown on Sat Jun 02, 2012 1:42 pm, edited 1 time in total.
belltown
 
Posts: 456
Joined: Thu Dec 09, 2010 1:43 pm

Re: Setting up live stream on roku channel

Postby belltown » Sat Jun 02, 2012 1:27 pm

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.
Last edited by belltown on Sat Jun 02, 2012 1:29 pm, edited 1 time in total.
belltown
 
Posts: 456
Joined: Thu Dec 09, 2010 1:43 pm

Re: Setting up live stream on roku channel

Postby loughlin » Sat Jun 02, 2012 1:28 pm

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
loughlin
 
Posts: 13
Joined: Sat Jun 02, 2012 12:07 pm

Re: Setting up live stream on roku channel

Postby loughlin » Sat Jun 02, 2012 1:50 pm

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:
loughlin
 
Posts: 13
Joined: Sat Jun 02, 2012 12:07 pm

Re: Setting up live stream on roku channel

Postby loughlin » Sat Jun 02, 2012 5:49 pm

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:
loughlin
 
Posts: 13
Joined: Sat Jun 02, 2012 12:07 pm


Return to Roku Developer Program

Who is online

Users browsing this forum: hnet and 6 guests