Nuevoplayer playlists



Nuevoplayer can play multiple media files in sequence one by one or by selection displaying nice playlist box on right.
Playlist box can be scrolled with mouse weel buton (flash) or using scrollbar (HTML5). You can close and re-open playlist box while watching video.
It is suggested not to mix videos format in HTML5 (use only HTMl5 compliant video format or youtube URL).

Playlist of media files must be XML file URL assigned to the player as option 'playlist'.

PLAYER EXAMPLE SETUP CODE


<script id="nuevo" type="text/javascript" src="http://www.yordomain.com/nuevo/player.js"></script>
<div id="player"></div>
<script type="text/javascript>
nvplayer.start( {
      id:'player',   // same as player div id container
      regkey: xxxx,   // your registration key for flash player
      width:'900', height:'370',
      playlist:'http://www.yourdomain.com/playlist.xml'
}); 
</script>


PLAYLIST XML EXAMPLE


<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
   <trackList>
      <track>
         <image>location of the preview image</image>
	 <file>location of the media video file</file>
	 <filehd>optional location of the HD quality video file</filehd>
	 <provider>http</provider>
	 <mediaid>unique media id</mediaid>
	 <url>website URL where original  is playing</url>
	 <duration>media duration in seconds</duration>
	 <title><![CDATA[ video title used to send to social networks ]]></title>
	 <embedcode><![CDATA[ embed code for current video ]]></embedcode>
      </track>
      <track>
         <image>location of the preview image</image>
         <file>location of the media video file</file>
	 <mediaid>unique media id</mediaid>
	 <url>website URL where original video is playing</url>
	 <duration>media duration in seconds</duration>
	 <title><![CDATA[ video title used to send to social networks ]]></title>
	 <embedcode><![CDATA[ embed code for current video ]]></embedcode> 
      </track>
   </trackList>
</playlist>



As you can see for each media item (track) you can assign same options as for single video according to Nuevoplayer options documentations.
It is strongly suggested to use syntax <![CDATA[......... ]]> for options like <title> or <embedcode> to keep valid UTF-8 XML format.

SAME PLAYLIST PHP EXAMPLE


<?php
header("Content-Type: text/xml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
print "<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n";
print "<trackList>\n";  
print "<track>\n";
print "<image>location of preview image file</image>\n";
print "<file>location of the media video file</file>\n";
print "<filehd>location of HD quality video file</filehd>\n";
print "<provider>http</provider>\n";
print "<mediaid>unique media id</mediaid>\n";
print "<url>website URL where original video played</url>\n";
print "<duration>media duration in seconds</duration>\n";
print "<title><![CDATA[ video title used to send to social networks ]]></title>\n";
print "<embedcode><![CDATA[ embed code for current video ]]></embedcode>\n";
print "</track>\n";
print "<track>\n";
print "<image>location of preview image file</image>\n";
print "<file>location of the media video file</file>\n";
print "<html5>location of the media file for HTML5 playback</html5>\n";
print "<mediaid>unique media id</mediaid>\n";
print "<url>website URL where original video played</url>\n";
print "<duration>media duration in seconds</duration>\n";
print "<title><![CDATA[ video title used to send to social networks ]]></title>\n";
print "<embedcode><![CDATA[ embed code for current video ]]></embedcode>\n";
print "</track>\n";
print "<track>\n";
print "<image>location of preview image file</image>\n";
print "<file>location of the media video file</file>\n";
print "<provider>http</provider>\n";
print "<mediaid>unique media id</mediaid>\n";
print "<url>website URL where original video played</url>\n";
print "<duration>media duration in seconds</duration>\n";
print "<title><![CDATA[ video title used to send to social networks ]]></title>\n";
print "<embedcode><![CDATA[ embed code for current video ]]></embedcode>\n";
print "</track>\n";
print "</trackList>\n";
print "</playlist>\n";
?>



Playlist XML file can be also generated as dynamic PHP file. So if you have some experience in PHP,
it is possible to generate such XML dynamically based on some unique PHP request parameter
This is what we do for all ready integrations that we support.

Playlists work almost same in both, flash and HTML5 mode

Youtube RSS playlists

From Nuevoplayer version 8 it is able to load and play Youtube RSS feeds as playlist of youtube videos.
For more information about Youtube playback check Youtube dedicated part of website.