0
votes

Hide control bar from web-based flash video player

posted August 19, 2009 - 12:54am
Hide control bar from web-based flash video player

The 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

  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Allowed HTML tags: <p> <br> <b> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <span> <object> <param> <embed> <table> <tr> <td> <div>
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Join Xomba Today

Do you like to write? Would you like to make a little extra money on the side? These people do. Join the Xomba community today.
Become a Member