
Dynamic playlist for both iOS and RTMP streaming
Previous thread: http://www.longtailvideo.com/support/forums/jw-player/using-playlists/27187/m3u8-and-xml-playlists-for-rtmp-and-ios-dynamic-streaming/
Decided to try this again and hopefully all of my issues can be worked out in this thread. Have read the forums, instructions, etc., but I'm stuck.
I'm trying to build a page with the following features (dynamic streaming playlist both Flash and iOS):
1. Playlist (multiple videos):
2. Each item on the playlist points to two external manifest files with dynamic streaming for:
a. Flash/PCs: smil manifest file pointing to video with 4 different bandwidths
b. m3u8 file for iOS.
For example, each item in the rss playlist would contain a .smil and .m3u8 manifest like this :
bc.. <?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>
<title>Single video with bitrate switching</title>
<item>
<title>Clicking With Technology</title>
<description>FMS 4.5 bitrate switching.</description>
<media:group>
<media:content url="Manifests/Concert.smil"/>
<media:content url="Manifests/Concert.m3u8"/>
</media:group>
<jwplayer:type>rtmp</jwplayer:type>
<jwplayer:streamer>rtmp://63.116.232.8/vod/</jwplayer:streamer>
</item>
</channel>
</rss>
3. Build a custom skin.
I am stuck on step 2a. I have not been able to get JW player to work with a manifest file (smil) for dynamic streaming or with an xml/rss file (playlist). The player works with .m3u8 manifests with no problem (iOS devices) but I cannot get it to work with any kind of external playlist file on the rtmp side. All of the individual streams have been checked and they work (with an inline playlist, for example). There are no cross-domain issue or errors.
Simple set-ups without playlist, just trying to make it work with a smil or an xml playlist have failed.
These are some of my attempts so far:
1. a. http://www.librarymedia.net/Dynamic/Dynamic.html Error: Task Queue failed at Step 5: playlist is empty.
set-up: bc.. <div id="jwplayer"></div>
bc.. <script>
jwplayer("jwplayer").setup({
'flashplayer': 'mediaplayer/player.swf',
playlist: [{
sources: [{
file: "Manifests/ClickingWithTechnology.smil"
},]
}],
height: 360,
width: 640,
primary: "flash"
});
</script>
smil file:
bc.. <smil>
<head>
<meta base="rtmp://63.116.232.8/vod/"/>
</head>
<body>
<switch>
<video src="mp4:ClickingWithTechnology_2000kbps.f4v" system-bitrate="2000000" width="1920" height="1080" />
<video src="mp4:ClickingWithTechnology_1200kbps.f4v" system-bitrate="1200000" width="960" height="540" />
<video src="mp4:ClickingWithTechnology_800kbps.f4v" system-bitrate="800000" width="640" height="360" />
<video src="mp4:ClickingWithTechnology_400kbps.f4v" system-bitrate="400000" width="320" height="180" />
</switch>
</body>
</smil>
2. http://www.librarymedia.net/Dynamic/Playlist.html Error: video not found or access denied: rtmp://63.116.232.8/vod/mp4:5KRun2012-BikeCam-06032012_400kbps.f4v
set-up:
bc.. <div id='mediaplayer'></div>
bc.. <script type="text/javascript">
jwplayer('mediaplayer').setup({
'flashplayer': 'mediaplayer/player.swf',
'id': 'playerID',
'width': '960',
'height': '540',
'controlbar': 'over',
'playlistfile': 'playlist.xml', //also tried 'playlist': 'playlist.xml',//
'playlist.position': 'bottom',
'playlist.size': '100',
'skin': 'mediaplayer/glow.zip'
});
</script>
xml playlist: Have also tried <rss version="2.0" xmlns:jwplayer="http://rss.jwpcdn.com/">
bc.. <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/trac/">
<channel>
<title>MRSS Playlist</title>
<item>
<title>2012 5K Run</title>
<media:content url="rtmp://63.116.232.8/vod/mp4:5KRun2012-BikeCam-06032012_400kbps.f4v" />
<media:thumbnail url="Splash/5KRun2012.png" />
<description>TEF 5K run to benefit the Tenafly Public Schools</description>
<jwplayer:duration>4708</jwplayer:duration>
</item>
<item>
<title>Clicking With Technology</title>
<media:content url="rtmp://63.116.232.8/vod/mp4:ClickingWithTechnology_400kbps.f4v" />
<media:thumbnail url="Splash/ClickingWithTechnology.png" />
<description>Student produced project on educational technology.</description>
<jwplayer:duration>1509</jwplayer:duration>
</item>
<item>
<title>2012 Graduation.</title>
<media:content url="rtmp://63.116.232.8/vod/mp4:Graduation2012-06212012_400kbps.f4v" />
<media:thumbnail url="Splash/Graduation2012.png" />
<description>Class of 2012 graduation ceremony.</description>
<jwplayer:duration>4949</jwplayer:duration>
</item>
</channel>
</rss>
Streams play fine with an inline playlist or an .m3u8 manifest file: http://www.librarymedia.net/Dynamic/Playlist2-inline.html
Again, I cannot get the player to load rtmp streams from a playlist file. Any suggestions on how I can get JW player to work with an external playlist file (mrss or .smil). I can't move onto the other steps until I get this part working.
Thanks.