googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
445 stars 285 forks source link

[Video] Plugin does not display ads if started in fullscreen #1097

Closed vhbramos closed 1 year ago

vhbramos commented 1 year ago

When video content playback starts in fullscreen, the plugin does not properly initialize IMA SDK and ads are not displayed.

[---Steps to Reproduce---]

Kiro705 commented 1 year ago

Hello @vhbramos ,

After some experimenting, the following code captures the fullscreen event from the "Show Controls" option:

document.addEventListener('webkitfullscreenchange', () => {
    // response to event.
});

However, what is interesting, is this does not trigger the videoJS fullscreenchange event. If it did trigger the event, then things should work as expected. Without that event being triggered, it becomes somewhat messy to manage the fullscreen state for IMA. I would recommend raising an issue in the video.js issues queue to better understand how it can be supported on their end.

In the current state, I do not think we can support this functionality in this plugin.

Let me know if you have any additional questions.

Thank you, Jackson IMA SDK team