Hide control bar from web-based flash video player
posted August 19, 2009 - 12:54amThe control bar of the web player generated by Moyea Web Player in default will always show during the video playing. But it's available to configure a flash video player whose control bar will hide automatically during video playing.
There are two ways are available to implement the above demo: 1. Customzing with Moyea Web Player; 2. Inserting a line of flashvars code into the embed code of an existed player.
1. Moyea Web Player
With Moyea Web Player, all need to do is checking the “Player auto hide” option on the following interface, when customize the player. And set 2 as the value of the "Hide delay" option.

2. Flashvars Code
To implement the above demo with flashvars code, the embed code would be like 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=playerAutoHide*true*b||hideDelay*2000*i');
so.write("flashcontent");
</script>
The line of the red code is the flashvars code for getting the functionality. Get more information about flashvars code.

Comments
Post new comment