Nuevoplayer 4: Flashvars • Playlist XML Example
Playlist example
To load a playlist, define single option in side embed object or in config XML file.
- playlist (undefined): Location of an XML playlist to load into the player.
The following flashvars can be set for "playlist" single item.
- file ( undefined ): location of the mediafile to play.
- filehd ( undefined ): location of alternative (higher quality) mediafile to play.
- category ( undefined ): used to indicate preroll or postroll media file. Possible values are: preroll and postroll.
Allowed formats are images (jpg,gif,png) or video (flv,mp4) media files.
- streamer ( undefined ): Location of an rtmp/http server instance to use for streaming. Can be an RTMP application or external PHP/ASP file.
- provider ( undefined ): The following providers are supported: Youtube (for youtube videos), RTMP (for files played from an RTMP server),
HTTP (videos played as http pseudo-streaming, using server streaming mods). If not defined provider is detected by the player based upon the file extension.
- id ( undefined ):Unique id to identify media file, eg. used as parameter to email script's URL
- httpparam ( start ): Query string used to send start position for http streaming.
- url ( undefined ): URL of the website page with original video, show in embed section of player menu. Also used for video window click action if defined.
- title ( undefined ): Video title used to share on social networks.
- embedcode ( undefined ): Video embed code to insert on website or blog, shown in embed section of player menu.
- count_url ( undefined ): used for preroll and postroll media files. URL to the script called when player video window with media file clicked.
Here's an example of playlist XML file with preroll, 3 video items and postroll.
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<category>preroll</category>
<file>path to media file to play as preroll ad</file>
<url>website URL to go when preroll clicked</url>
<id>preroll unique ID to identify by php/asp script</id>
</track>
<track>
<file>path to media video file</file>
<filehd>optional path to media video file of higher quality (HD)</filehd>
<provider>HTTP</streamer>
<id>unique id to identify media file, eg. used as parameter to email script's URL</id>
<url>website URL where original video played</url>
<title>video title used to send to social networks</title>
<embedcode>embed code for current video</embedcode>
</track>
<track>
<file>media video filename</file>
<streamer>location of an rtmp server instance to use for streaming</streamer>
<provider>RTMP</provider>
<id>unique id to identify media file, eg. used as parameter to email script's URL</id>
<url>website URL where original video played</url>
<title>video title used to send to social networks</title>
<embedcode>embed code for current video</embedcode>
</track>
<track>
<category>postroll</category>
<file>path to media file to play as postroll ad</file>
<url>website URL to go when postroll clicked</url>
<id>postroll unique ID to identify by php/asp script</id>
</track>
</trackList>
</playlist>
AVS, Clipshare, PHPMotion video scripts users do not have to bother about playlist or config flashvars,
as each option is easily accesible from admin, playlists are generated automatically.
For custom CMS or other video scripts user have option to install Universal player menagement script.
It allows to manage most of player options and settings in easy way. Also it has built in all internal ad systems.
One thing that user must do is preparing playlist and guide dynamic php files file based on certain script and databse settings.
With Univeral Integration we provide playlist/guide examples and tutorials how to do things.
Still this requires from user php and mysql experience.