I am loading an xml file in jwplayer to play videos depending on which link is clicked. Below is my jwplayer setup code, and xml:
Jwplayer:
<script type="text/javascript">
jwplayer("player-container").setup({
autostart: true,
'modes': [
{type: 'html5'},
{type: 'flash', src: '/assets/components/mediaplayer-5.8/5.9/player.swf',config:{
skin: "/assets/components/mediaplayer-5.8/modieus.swf"
}},
{type: 'download'}
],
repeat: 'list',
width: 480
});
jwplayer().load('/media/narration.xml')
</script>
Sample XML:
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Sample File</title>
<item>
<title>peking</title>
<link></link>
<description></description>
<pubDate>Sat, 07 Sep 2002 09:42:31 GMT</pubDate>
<media:content url="/videos/Peking Edit For Web-7.mp4" />
<media:thumbnail url="/images/playerimg.jpg" />
</item>
</channel>
</rss>
However, no video is playing. But if I bring {type: 'html5'}
below flash
, videos show up correctly. Any idea what I might be doing wrong?