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

Problem with HLS and the sample video player app

I have done a few Roku channel based on the sample video player app in the SDK but am just now trying to get my first live stream going. Does the sample video player app work with HLS out of the box? In the debug console I am getting "Content contains no playable tracks.". Here is my XML. FYI, I have tried multiple m3u8 URLs, all produce the same error.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed>
<resultLength>1</resultLength>
<endIndex>1</endIndex>
<item sdImg="" hdImg="">
<title>Live Feed Test2</title>
<shortDescriptionLine1></shortDescriptionLine1>
<shortDescriptionLine2></shortDescriptionLine2>
<contentId>1</contentId>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8</streamUrl>
</media>
<synopsis></synopsis>
<releaseDate></releaseDate>
<runtime></runtime>
</item>
</feed>
0 Kudos
2 REPLIES 2
bandal
Visitor

Re: Problem with HLS and the sample video player app

Try to arrange the xml file like this: But the stream does not play so good even in VLC only got some audio and no video.

<item sdImg="http://www.xxxxxx.org/roku/images/nasa_sd.jpg" hdImg="http://www.xxxxxx.org/roku/images/nasa_hd.jpg">
<title>Nasa</title>
<contentId>8002</contentId>
<contentType>movie</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>0</streamBitrate>
<streamUrl>http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8</streamUrl>
</media>
<synopsis>Test</synopsis>
<genres>Drama</genres>
<runtime>4800</runtime>
<ReleaseDate>2008-03-13</ReleaseDate>
<director>Test</director>
<rating>PG</rating>
</item>
0 Kudos
jcalhoun
Visitor

Re: Problem with HLS and the sample video player app

Worked like a charm. Just needed to move the <streamFormat> element outside of the <media> element. Thanks a ton.
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.