Open HD FLV Player -xml-config.xml in text editor (Notepad, WordPad etc…)
You will be able to find the following variables which help you to configure the player.
| S.no | Variables | Value | Process |
| 1 | stagecolor | Hexa-Decimal Value (0xFFFFFF) |
Changes the color of player bg. |
| 2 | autoplay | true or false | 1.Start playing the video when page Gets loaded if set to true. 2. Waits for the user’s mouse event to Play the video if set to false. |
| 3 | buffer | 0 – 10 | To control the buffer seconds
(recommended=3) |
| 4 | volume | 0-100 | To control the initial volume level. |
| 5 | normalscale | 0,1,2 | To control the scaling of video in
Normal screen mode. 0-aspect ratio 1-keep original size 2-fit to screen |
| 6 | fullscreenscale | 0,1,2 | To control the scaling of video in
Normal screen mode. <0-aspect ratio 1-keep original size 2-fit to screen |
| 7< | logopath | Absolute path of your logo
(works only in commercial version) |
To pass the logo path.
(Allowed Extensions: jpg, png, gif, swf) |
| 8 | logoalpha | 0-100
(works only in commercial version)< |
To control the alpha transparency of<
Logo. |
| 9 | logoalign | (works only in commercial
version) |
To control the logo alignment.
TL-top left alignment. TR-top right alignment. LB-left bottom alignment. C-center alignment. |
| 10 | logo_target | Absolute path
(works only in commercial version) |
Page to be redirected on clicking the
Logo. |
| 11 | skin | Absolute path | Uses the provided skin from skin folder |
| 12 | skin_autohide | True “or” false | To use the skin auto hide option |
| 13 | languageXML | Absolute path | XML file that converts your player to
your native language (will be explained below). |
| 14 | playlistXML | Absolute path | XML file that contains the videos
Information (will be explained below) |
| 15 | playlist_open | true “or” false | To make related videos thumbnail be
Opened when video loads. |
| 16 | showPlaylist | true “or” false | Show or hide the playlist thumbnails. |
| 17 | HD_default | true “or” false | To make playing the HD videos in
default if both HD and normal videos Provided to the player. |
| 18 | vast | true “or” false | Our player supports both vast ads and
Self created ads. If you were the partner of Scanscout, you can make Use of this variable. |
| 19 | vast_partnerid | ID provided by Scanscout | Plays the ads provided for the
Particular ID by Scanscout. |
| 20 | adXML | Absolute path | XML file that contains self created
pre-roll and post-roll ads to be played for The videos. |
| 21 | pre-roll ads | True “or” false | Global control to enable or disable
Pre-roll ads. |
| 22 | post_roll ads | True “or false | Global control to enable or disable
Post-roll ads. |
| 23 | mid-rollXML | XML file that contains self created
Mid-roll ads to be played for the videos. |
|
| 24 | mid-roll_ads | True “or” false | Global control to enable or disable
Mid-roll ads. |
| 25 | cssURL | Absolute path | CSS file that designs the mid-roll ads
taglines of videos and pre-roll ads (will be explained below) |
| 26 | shareURL | Absolute path | File that contains server side script to
Send mail. |
| 27 | embed_visible | True “or” false | Enabling or disabling the Embed option. |
| 28 | videoshareURL | Absolute path | File that contains server side script to
extract videos from video publishing sites such as youtube, metacafe, blipTV, Google, etc. |
| 29 | debug | True “or” false | To debug the player during initial
Configuration. After the player was installed successfully in your site, you can set this option to false. |
| 30 | license | License key provided by
us for the commercial Version. |
Could use own logo with copyright
Permission. |
| <timer> true </timer> Show or Hide the timer button in skin | |||
| <zoom> true </zoom> Show or Hide the Zoom button in skin | |||
| <email> true </email> Show or Hide the share or email button in skin | |||
| <fullscreen>true</fullscreen> Show or Hide the fullscreen button in skin | |||
Configuring HD FLV Player through flashvars
1. Open index.html in your favorite editor.
2. You will be able to find the following code snippet
<div name=’mediaspace’ id=’mediaspace’>
<script type=”text/javascript”>
Var s1 = new SWFObject (‘HD FLV Player /hdplayer.swf’, ‘player’, ’640′, ’360′, ’9′);
s1.addParam (‘allowfullscreen’, ‘true’);
s1.addParam (‘allowscriptaccess’, ‘always’);
s1.addParam (‘wmode’, ‘transparent’);
s1.write (‘mediaspace’);
</script>
3. Add the below line next to
s1.addParam (‘wmode’, ‘transparent’);
s1.addVariable (‘variable’, ‘value’);
Example: To pass the video file through flashvars,
<div name=’mediaspace’ id=’mediaspace’>
<script type=”text/javascript”>
var s1 = new SWFObject (‘HD FLV Player /hdplayer.swf’, ‘player’, ’640′, ’360′, ’9′);
s1.addParam (‘allowfullscreen’, ‘true’);
s1.addParam(‘allowfullscriptaccess’, ‘always’);
s1.addParam (‘wmode’, ‘transparent’);
s1.addVariable (‘file’, ‘your video file path goes here’);
s1.addVariable (‘hdpath’, ‘your hd file path goes here’);
s1.addVariable (‘preview’, ‘yourPreview image path goes here’);
..Etc
s1.write (‘mediaspace’);
</script>
4. Variables-which helps you to configure the player through flashvars.
Please refer the above configuration attributes table.
Related Posts via Categories
- Supported file formats
- Error loading required skin
- Example of code which plays youtube videos from playlist.xml
- Example of code playing scanscout ads through xml
- Example of code which plays lighttpd server files from xml
- Example of code which plays rtmp server files from xml
- Example of code which plays Pre-roll, Post-roll, Mid-roll from xml
- Example of code which plays videos from playlist.xml
- Example of code which plays YouTube videos from flashvars
- Example of code playing scanscout ads through flashvars