Kodi Community Forum

Full Version: Add support for smil files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
These smil files are some xml's containing stream info, i've seen them being used with Wowza Media Server 2, can contain multiple streams, for example this smil contains different streams for a radio station, only one stream is active for a few minutes, after that it stops and another is enabled, this probably to make it hard to get a direct link to the stream.
Code:
<smil>
    <head origin="rtmp://82.80.199.141:443/glz_glglzradioPublish">
        <meta base="rtmp://188.64.97.167:443/glz_glglzradioRepeat">
            <cluster base="rtmp://188.64.97.167:443/glz_glglzradioRepeat" priority="1" />
            <cluster base="rtmp://188.64.96.10:443/glz_glglzradioRepeat" priority="2" />
            <cluster base="rtmp://188.64.97.166:443/glz_glglzradioRepeat" priority="3" />
        </meta>
    </head>
    <body>
        <switch>
            <video src="glglzradio.stream" system-bitrate="128000" width="640" dur="indefinite" />
        </switch>
    </body>
</smil>

I've tried putting all these streams in a playlist but when xbmc find a dead link it just stops to play.
for example a link to one stream should look like that
Code:
rtmp://188.64.97.167:8081/glglzradioRepeat playpath=glglzradio.stream swfUrl=http://locator.3dcdn.com/newlive/swf/flowplayer.analytics-3.2.1.swf  pageUrl=http://locator.3dcdn.com/glz/glglzradio/300/200/radio.html