HDW Player Download

Playlist

HDW Player is still trying to better the Examples section. Mail your ideas to [email protected]

Using Video Properties with HDW Player embedcode will allow you play single video. But in some cases, you will need to play a list of videos within the player. This can be achieved by creating multiple Video property blocks in separate XML file and adding it to the player using playListXml property.

Following snippet is known as Single Video Block :

<media>
  <type>video</type>
  <streamer>only applicable for RTMP streams</streamer>
  <token>security token applicable only for wowza servers</token>
  <hd>applicable only if HD video is available</hd>
  <video>video.flv</video>
  <thumb>thumb.jpg</thumb>
  <preview>preview.jpg</preview>
  <title>Demo Video</title>
</media>

PlayList Xml Configuration

Please check the example below that guide you in adding multiple video items / blocks through XML.

<script>
hdwplayer({ 
	id          : 'player',
	swf         : '/media/files/player.swf',
	width       : '640',
	height      : '360',
        playListXml : 'player/xml/playlist.xml'
});
</script>

 

<?xml version="1.0" encoding="utf-8"?>
  <playlist>

    <media>
    <type>video</type>
    <streamer>only applicable for RTMP streams</streamer>
    <token>security token applicable only for wowza servers</token>
    <hd>applicable only if HD video is available</hd>
    <video>video1.flv</video>
    <thumb>thumb1.jpg</thumb>
    <preview>preview1.jpg</preview>
    <title>Video 1</title>
  </media>

  <media>
    <type>video</type>
    <streamer>only applicable for RTMP streams</streamer>
    <token>security token applicable only for wowza servers</token>
    <hd>applicable only if HD video is available</hd>
    <video>video2.flv</video>
    <thumb>thumb2.jpg</thumb>
    <preview>preview2.jpg</preview>
    <title>Video 2</title>
  </media>
</playlist>

 

Support