Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

RTMP in Playlist

3 replies [Last post]

I'm trying to get a playlist going with rtmp streaming. I need a short video clip to play, then go to our live feed.

I've been reading the docs and trying for many hours now. This is what I have:

video: http://gracetelevision.net/index.php?test

playlist: http://gracetelevision.net/rss/home_video

Thanks if anyone can help!

Here's the code so you don't have to go to the links:

VIdeo:

var flashvars =
{
file:'/rss/home_video'
};

var params =
{
allowfullscreen:      'true',
allowscriptaccess:    'always',
bgcolor:              '#000000',
wmode: 'transparent'
};

var attributes =
{
id:                   'mp1',
name:                 'mp1'
};

swfobject.embedSWF('/img/swf/player46.swf', 'player', '350', '306', '9.0.155', '/img/swf/expressinstall.swf', flashvars, params, attributes);

Playlist:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<tracklist>

<track>
      <creator>Creator</creator>
      <title>Title</title>
      <location>rtmp://watchcelebratefs.fplive.net/watchcelebrate/</location>
      <identifier>intro/PrayerShawl.mp4</identifier>
      <meta rel="type">rtmp</meta>
    </track>
   
<track>
      <creator>Creator</creator>
      <title>Title</title>
      <location>rtmp://watchcelebratelivefs.fplive.net/watchcelebratelive-live/wiministry001/</location>
      <identifier>wiministry001</identifier>
      <meta rel="type">rtmp</meta>
    </track>
</tracklist>
</playlist>

Okay, so I have it working with the JW namespace instead. It's just not automatically continuing to the next video.

This is what I'm using:

Video:

var flashvars =
{
file:'/rss/home_video',
skin:'/img/swf/demand.swf',
controlbar:'bottom',
stretching:'uniform',
title: 'Live Program',
autostart:'true',
link: 'http://gracetelevision.net/support'
};

var params =
{
allowfullscreen:      'true',
allowscriptaccess:    'always',
bgcolor:              '#000000',
wmode: 'transparent'
};

var attributes =
{
id:                   'mp1',
name:                 'mp1'
};

swfobject.embedSWF('/img/swf/player46.swf', 'player', '350', '306', '9.0.155', '/img/swf/expressinstall.swf', flashvars, params, attributes);

Playlist:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
  <channel>
    <item>
      <title>Angelina</title>
      <author>Grace TV</author>
      <media:content url="reports/Angelina.mp4" />
      <jwplayer:duration>15</jwplayer:duration>
      <jwplayer:streamer>rtmp://watchcelebratefs.fplive.net/watchcelebrate/</jwplayer:streamer>
      <jwplayer:type>rtmp</jwplayer:type>
    </item>
    <item>
      <title>Prayer Shawl</title>
      <author>Grace TV</author>
      <media:content url="intro/PrayerShawl.mp4" />
      <jwplayer:duration>15</jwplayer:duration>
      <jwplayer:streamer>rtmp://watchcelebratefs.fplive.net/watchcelebrate/</jwplayer:streamer>
      <jwplayer:type>rtmp</jwplayer:type>
    </item>
    <item>
      <title>Live Stream</title>
      <author>Grace TV</author>
      <media:content url="wiministry001" />
      <jwplayer:streamer>rtmp://watchcelebratelivefs.fplive.net/watchcelebratelive-live/wiministry001/</jwplayer:streamer>
      <jwplayer:type>rtmp</jwplayer:type>
    </item>
  </channel>
</rss>

Okay, nothing to see here, I got it worked out!

Only took me 5 hours… sheesh!