Set the default volume value
The default volume value of web player is the volume showed when videos been loaded for the first time. With PlayerDIY Web Player, you could set the default volume value on the control bar as you like. Possible values range from 0 to 100.
The demo whose volume value is 30:
Implement the demo above in two easy ways:
- PlayerDIY Web Player
- Flashvars Code
1. Go to Template, choose Options tab.
2. Push down Skin settings, and set the value of Volume to be 30 .
To implement the above demo with flashvars code, the embed code will be as below:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent" align="center"></div>
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','playerOpts=sndVolume*30*i');
so.write("flashcontent");
</script>
The line of the red code is the flashvars code for setting the volume value. Get more information about flashvars code.
- Set control-bar color to match website
- Set background color of player
- Set the position of control bar
- Customize Preloader button
- Hide control bar automatically
- Remove the "Embed & URL" Area
- Hide mouse automatically
- Hide playing time
- Hide playlist icon
- Hide previous and next icons
- Hide playing process bar
- Customize right-click menu