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

HLS + MP4 in XML

I'm trying to add an HLS stream to my XML which is all mp4.

This works great for the mp4:


<item sdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_december2014.jpg" hdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_december2014.jpg">
<title>12/28/14</title>
<contentId>70003</contentId>
<contentType>Music</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.archive.org/download/OOFTVPresents120714YouTubeFastStart10000Kbps/OOFTVPresents-120714-YouTube%20Fast%20Start%20%2010%2C000%20kbps.mp4</streamUrl>
</media>
<synopsis>Part Time, Shannon and the Clams, Guantanamo Baywatch and more!</synopsis>
<genres>Music</genres>
<runtime>1834</runtime>
</item>



But changing the values won't load the HLS stream.


<item sdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_102214.jpg" hdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_102214.jpg">
<title>OOFTV 24/7</title>
<contentId>70004</contentId>
<contentType>Music</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>596</streamBitrate>
<live>true</live>
<streamUrl>http://pablogott.videocdn.scaleengine.net/pablogott-iphone/play/ooftv1/playlist.m3u8</streamUrl>
</media>
<synopsis>Music videos, minidocs, and more! The music TV you always wanted.</synopsis>
<genres>Music</genres>
<runtime>100</runtime>
</item>


Also, since this is a 24/7 stream, is there a better way to represent that in runtime?
0 Kudos
2 REPLIES 2
armagedon79
Visitor

Re: HLS + MP4 in XML

Try this:

<item sdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_102214.jpg" hdImg="http://discolemonade.com/roku/images/thumbs/OOF/OOF_102214.jpg">
<title>OOFTV 24/7</title>
<contentId>70004</contentId>
<contentType>Music</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>0</streamBitrate>
<streamUrl>http://pablogott.videocdn.scaleengine.net/pablogott-iphone/play/ooftv1/playlist.m3u8</streamUrl>
</media>
<synopsis>Music videos, minidocs, and more! The music TV you always wanted.</synopsis>
<genres>Music</genres>
<runtime></runtime>
</item>
0 Kudos
pablogott
Visitor

Re: HLS + MP4 in XML

That did it! Thank you, so it looks like the main issue was where <streamformat> was placed.
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.