Go
Not registered? Sign up!

RTMP in Playlist

Google Translate
4 posts | return to the Setup Problems forum | get the rss feed for this thread

Nov. 18, 2009Jeremy Douglas

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!

Nov. 18, 2009Jeremy Douglas

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>

Nov. 18, 2009Jeremy Douglas

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>

Nov. 18, 2009Jeremy Douglas

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

Only took me 5 hours… sheesh!

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.