You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious if there's a way for videojs-ima plugin to reset itself, effectively ready to be reinitialised?
The scenario is this: we aim to utilize a single player and relocate it within a carousel for smooth scrolling transitions. After the carousel scroll ends, we relocate the player to the active slide and switch the source. However, we can't dispose and recreate the player because, with sound enabled, the video won't autoplay on the third slide on mobile (the browser interprets this as lacking direct user interaction with the video, thus disabling autoplay with sound). Currently, our preroll fails to play on the second slide if we relocate the player in the DOM. It seems the ima SDK lacks support for scenarios where the player is moved within the DOM. So we just wonder if there is a way to reinitialise the videojs-ima after we move the player? Hopefully this will play the ads and autoplay is still working with sound on when user scroll around.
Kind regards..
The text was updated successfully, but these errors were encountered:
I do not think this plugin supports the case of reloading itself. I would recommend using the IMA H5 SDK without the videoJS plugin, which will allow more customization in your implementation.
If you can identify the specific functionality that needs to be supported by the plugin for your use-case, I can look into updating it in the next version.
I tried integrating the IMA SDK directly but encountered an issue where the preroll won't play because it thinks the video has sound, even though it's muted. I attempted to replicate the logic in this plugin regarding sound settings but still faced the same problem.
We can close this, or if you want, we could add support to reinitialize the plugin. This would be a feature/workaround for the IMA SDK limitation, where it doesn't support moving the DOM after the SDK has been initialized. This seems like a useful feature since quite a few people are experiencing similar issues.
On my side, we found a workaround. We are replicating the video playback using a canvas. Video.js is playing behind the slider, and what we show on top is the canvas. When scrolling, the video in the canvas continues playing. Once the slide transitions, we update the canvas to the next active slider. When ads play, we hide the canvas and show Video.js. While the ads are playing, users can't move the slides. So, this workaround is working quite well for us.
Hello,
I'm curious if there's a way for videojs-ima plugin to reset itself, effectively ready to be reinitialised?
The scenario is this: we aim to utilize a single player and relocate it within a carousel for smooth scrolling transitions. After the carousel scroll ends, we relocate the player to the active slide and switch the source. However, we can't dispose and recreate the player because, with sound enabled, the video won't autoplay on the third slide on mobile (the browser interprets this as lacking direct user interaction with the video, thus disabling autoplay with sound). Currently, our preroll fails to play on the second slide if we relocate the player in the DOM. It seems the ima SDK lacks support for scenarios where the player is moved within the DOM. So we just wonder if there is a way to reinitialise the videojs-ima after we move the player? Hopefully this will play the ads and autoplay is still working with sound on when user scroll around.
Kind regards..
The text was updated successfully, but these errors were encountered: