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

How do you disable JWPLAYER from responding to tap events?


I was requested to disable the JW Player embedded on a web page from responding to tap and click events from android phones and iPhones.
So far, I have managed to disable the player from responding to clicks and failed to do the same in response to tap events using the code below:

jwplayer().onDisplayClick(function(){
jwplayer().play();
});

Is there a function for tap events like .onDisplayClick or any other workaround?

Solutions or suggestions would be appreciated.


Thank you in advance.

1 Community Answers

George

JW Player Support Agent  
0 rated :

I usually handle this by overlaying a div on the player to intercept the tap events:
http://qa.jwplayer.com.s3.amazonaws.com/~george/overlay_disable_tap.html

This question has received the maximum number of answers.