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

Latest JW player unable to hide control bar.


I have already tried following configrations for JW player :

stretching: 'exactfit',
wmode: 'transparent',
allowfullscreen: 'true',
image: 'SmallMap.jpg',
height: 360,
width: 640 ,
controlbar: 'none',
'controlbar.idlehide' : true,
autostart: true

Can you please respond back as soon as possible. Things I need to do is want to do not want to see control bar at all. And when ever the video is double clicked it should be full screen. Currently struggling to remove control bar. Setting controls: false remove the control bar but it does not do double click fullscreen. Please reply as soon as possible. Thanking You.

Regards,
Neelesh

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hi Neelesh,

You can try something like this:

jwplayer(“player”).setup({
file: ‘bunny.mp4’,
image: ‘bunny.jpg’,
width:‘100%’,
controls: false
});

var _bind = function(el, evt, fcn) {
el[window.addEventListener ? ‘addEventListener’ : ‘attachEvent’]( window.addEventListener ? evt : ‘on’ + evt, fcn, false);
}
jwplayer(‘player’).onReady(function() {
var parent = jwplayer(‘player’).getContainer().parentNode,
player = this;
_bind(parent, ‘click’, function() {
player.play(); //play() with an arg is effectively a toggle
});
});

Best Regards,
Cooper

This question has received the maximum number of answers.