Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ninjaduke
Level 7

Can't stream m3u8! "Content contains no playable tracks."

Ok, so I'm a complete newb, I'm working on this test channel trying to figure out how to stream live video! I'm using a working stream but
it just doesn't work on Roku.. Here's my XML file below..

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<resultLength>2</resultLength>
<endIndex>4</endIndex>
<item sdImg="http://www.stevenduke.com/octave/images/attitude_sd_poster.jpg" hdImg="http://www.stevenduke.com/octave/images/attitude_hd_poster.jpg">
<title>Nasa Live Stream</title>
<contentId>10001</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://iphoned5.akamai.com.edgesuite.net/mhbarron/nasatv/nasatv_all.m3u8</streamUrl>
</media>
<synopsis>Naza Live Feed Test</synopsis>
<genres>Clip</genres>
<runtime>1260</runtime>
</item>
</feed>


Here are the errors I'm getting:

ButtonPressed
showHomeScreen | msg = Stream started. | index = 0
Unexpected event type: 20
showHomeScreen | msg = Content contains no playable tracks. | index = 0
Video status: 0 0
showHomeScreen | msg = | index = -5
Video request failure: -5 1
showHomeScreen | msg = | index = 0
Screen closed
Button pressed: 1 0


I need to figure this out but tutorials don't really cover this..
In the near future I'm going to need to be able to stream live video and live audio channels for a company I'm working with.
Any help would be appreciated.. I just don't understand what I need to do to make this work.. There really hasn't been an
end to end tutorial that covered these different types of streams, xml...ect.. D: Thanks!!
0 Kudos
8 Replies
ninjaduke
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

I forgot to mention, I'm using the sample video player on this..
0 Kudos
bandal
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

Put your resultlength and endindex to 1 not 2 and 4
0 Kudos
ninjaduke
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

How important is the resultlength and endindex? Changing them didn't seem to fix the problem..
Can someone send me a working example in a zip file so I check out the code ect?
Or point me to the information I need to get this going.. Remember.. I'm super new.
I'm able to post mp4's no problem but I don't know how to post a stream/m3u8... :/

Send examples to..
Steven.r.duke@gmail.com

THANKS! Smiley Very Happy
0 Kudos
belltown
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

The stream you're trying to play seems to be encoded with a frame rate of 59.94 fps. Roku only supports frame rates of 23.976 fps or 29.97 fps. Have you tried playing other streams that work, for example the ones used in the SDK examples.
https://github.com/belltown/
0 Kudos
Roku Employee
Roku Employee

Re: Can't stream m3u8! "Content contains no playable tracks.

The stream plays for me. It buffers quite a bit, but it plays. So something else must be going wrong. This is what a very basic content-meta-data for your stream should look like...

switchingstrategy: full-adaptation
stream: (assocarr)...
url: http://iphoned5.akamai.com.edgesuite.net/mhbarron/nasatv/nasatv_all.m3u8
streamformat: hls
minbandwidth: 250
0 Kudos
mkenya
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

I have tried to stream m3u8 as well even with above instructions but it won't work. There is no documentation for this. I have looked thru the pdfs - nothing.
What SDK examples are you referring to - Could you be more specific?
Posting a working xml example here is not asking too much is it?
My mp4 files work well but when i put them in m3u8 they won't work.

Thanks for all your help.
Here is part of my xml file as well
<title>Nashville</title>
<contentId>10001</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1000</streamBitrate>
<streamUrl>http://mysite.com/roku/comedytv/dwhelper.m3u8</streamUrl>
</media>
<synopsis>Psychopathic killers are the basis for some must-watch TV, but what really makes them tick? Neuroscientist Jim Fallon talks about brain scans and genetic analysis that may uncover the rotten wiring in the nature (and nurture) of murderers. In a too-strange-for-fiction twist, he shares a fascinating family history that makes his work chillingly personal.</synopsis>
<genres>Clip</genres>
<runtime>1260</runtime>
0 Kudos
tvjay
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

I wish Roku would address the playing back of m3u8 with better examples.
0 Kudos
RokuMarkn
Level 7

Re: Can't stream m3u8! "Content contains no playable tracks.

The simplevideoplayer example has two HLS streams in the code. In DisplayVideo, under the comment "Swap the commented values below to play different video clips", there are four sections with video clips to play; the last two are HLS streams. Just uncomment the one you want to test.

--Mark
0 Kudos