googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

How to disable click to pause on mobile ? #1059

Closed damjan25 closed 2 years ago

damjan25 commented 2 years ago
  1. Is it possible to disable click to pause on video area on mobile?

######## One way to do it is with this line of code: document.querySelector("#myAdContainer-ima-ad-container > div:nth-child(1)").style.pointerEvents = "none";

But the issue is that then you can not also click on "Learn More" button anymore. ########

🔨 My use case:

ℹ️ Example here https://mysuf.github.io/videojs-ima-player/examples/advanced/index.html if you check it on mobile emulator

  1. Is it possible to change css styles of these elements inside iframe?

image

Kiro705 commented 2 years ago

Hello @damjan25 ,

There is not an explicit method to disable video-click to pause on mobile for this plugin. In addition the plugin does not provide a way to change the style for IMA rendered UI.

That is not to say it isn't possible, just not supported.

Thank you Jackson IMA SDK team

damjan25 commented 2 years ago

ok understandable. Thank you for explanation :D I will try to find some workaround :P