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

How to disable pause/play onDisplayClick?


I would like to disable display click events. I have tried using
onDisplayClick: function onDisplayClick(){
jwplayer().play();
}
to play everytime when this event fired.
For live RTMP stream for every click it's trying to buffer as because it fired onPause event then strated to Buffer again. Is there anyway to disable onClick event? Also I would like to have control bar visible for volume controls.

4 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello Sravan,

One potential way to disable pause/play of the video would be to completely remove the controls after the user presses the play button for the first time. You can see my code example below:

<script type="text/javascript"> jwplayer("player").setup({ file: 'bunny.mp4', image: 'bunny.jpg', width:'100%' }); jwplayer("player").onPlay(function() { jwplayer("player").setControls(false); }); </script>

I’ve also included a link to our API section that has additional resources you might find useful:

http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

sravan.kasarla

User  
0 rated :

As I said above we need volume controls visible for customer to change volume options.

sravan.kasarla

User  
0 rated :

Also, I have tried disabling controls but seems like play/pause still available (may be it's player default functionality?).

Randy

JW Player Support Agent  
0 rated :

Hello Sravan,

I see more clearly what you want to do with this. Essentially, you need to comment out the skin element within the XML. Below is a link that details the nodes by ID: http://support.jwplayer.com/customer/portal/articles/1413071-skin-xml-reference#dispaly Here is a thread that touches on your request as well: http://support.jwplayer.com/customer/portal/questions/8281326-switching-elements-of-the-skin-controlbar-on-off

Kindly,
Randy

This question has received the maximum number of answers.