HDW Player Download

Configuration

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

After you have installed HDW Player, it is time to customize it to your needs. You may want to customize the looks of the player, configure video clips and playlists, setup how your video is streamed or even tweak how the Flash object is embedded. Supplying a configuration is probably the easiest way to accomplish these things and more.

 

HDW Player configuration

HDW Player configuration

1. Javascript Configuration

2. XML Configuration

Javascript Configuration

Following is the example of Javascript Configuration. It supports all the properties supported by HDW Player.

<script>
hdwplayer({ 
	id      : 'player',
	swf     : 'https://www.hdwplayer.com/media2/files/player.swf',
	width   : '640',
	height  : '360',
    type    : 'video',
    video   : 'https://www.hdwplayer.com/player/videos/300.mp4'
});
</script>

XML Configuration

Sometimes you may want to use all the Config Properties that may look too long and hard to use. HDW Player allow you to place them in XML and just the add XML path using a special property called config.

Please check the example below that guide you in adding the config properties through XML.

<script>
hdwplayer({ 
	id      : 'player',
	swf     : 'https://www.hdwplayer.com/media2/files/player.swf',
	width   : '640',
	height  : '360',
        config  : 'player/xml/config.xml'
});
</script>
<?xml version="1.0" encoding="utf-8"?>
<config>
  <license>Your Commercial Key</license>
  <logo>player/images/logo.jpg</logo>
  <logoAlpha>50</logoAlpha>
  <logoPosition>bottomleft</logoPosition>  
  <logoTarget>http://hdwplayer.com</logoTarget>
  <skinMode>static</skinMode>
  <playListXml>player/xml/playlist.xml</playListXml>
  <playListAutoStart>false</playListAutoStart>
  <playListOpen>false</playListOpen>
  <autoStart>true</autoStart>
  <buffer>3</buffer>  
  <volumeLevel>50</volumeLevel>
  <stretch>fill</stretch>
  <emailPhp>player/php/email.php</emailPhp>
  <controlBar>true</controlBar>
  <playPauseDock>true</playPauseDock>
  <progressBar>true</progressBar>
  <timerDock>true</timerDock>
  <shareDock>true</shareDock>
  <volumeDock>true</volumeDock>
  <fullScreenDock>true</fullScreenDock>
  <playDock>true</playDock>
  <playList>true</playList>
</config>

Using the same method above, HDW Player allow you to add Video properties with another XML file(playlist) and add it to the player using playListXml property.

Support