Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to Hide every Controls exept FullScreen on HTML5 and flash video


Hello guys,

i'm looking for a hint to Hide every Controls exept FullScreen on HTML5

here is my code using HTML5:

<video controls=false preload="auto" width="800" height="450" autoplay="true" id="mavideo" onended="document.getElementById('mavideo').play();" >
<source src="file.mp4" type="video/mp4" />
<source src="file.ogv" type="video/ogg" />
</video>
<script type="text/javascript">
jwplayer("mavideo").setup({
modes: [
{ type: 'html5' },
{ type: 'flash', src: '/new/player.swf' }
],
autostart,

});
</script>


Does Anyone to know how to process?
Thanks for answers,
Cordially, Reign

6 Community Answers

Ethan Feldman

JW Player Support Agent  
1 rated :

You can set the controlbar variable to none, but that will affect the player entirely, for every mode, not specific to which mode the player is in.

You might be able to use modes to do this though – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18508/jw-embedder-modes

JW Player

User  
1 rated :

Ok, Actually it's not important than the fullScreen button be hidded too, i just saw than HTML5 permit custom button for full screen for Mozilla and chrome.

So, i add the line

jwplayer("mavideo").setup({
modes: [
{ type: 'html5' },
{ type: 'flash', src: '/player.swf' }
],
autostart,
{controlbar.position:'none'}

});

But it still displayed :/
Something wrong?

Ethan Feldman

JW Player Support Agent  
0 rated :

Put controlbar.position into single quotes, and make autostart, like autostart:true,

JW Player

User  
0 rated :

jwplayer("mavideo").setup({
modes: [
{ type: 'html5' },
{ type: 'flash', src: 'new/player.swf' }
],
{'autostart':'true',
'controlbar.position':'none'}
});

It still displayed :(

JW Player

User  
0 rated :

ok i get it

jwplayer("mavideo").setup({
modes: [
{ type: 'html5' },
{ type: 'flash', src: 'new/player.swf' }
],
'autostart':'true',
'controlbar.position':'none'
});

Thank you Ethan

Solved

Ethan Feldman

JW Player Support Agent  
0 rated :

Np :)

This question has received the maximum number of answers.