Forum Discussion

pablogott's avatar
pablogott
Visitor
11 years ago

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