kslimani / clappr-ima-plugin

Interactive Media Ads (IMA) SDK plugin for Clappr
MIT License
13 stars 3 forks source link

Pre-roll ad continuously loops on mobile #71

Open thekendog opened 11 months ago

thekendog commented 11 months ago

I've got a pre-roll ad that works great on desktop, but on Chrome on iOS it plays in a loop and there's no way to stop it. Is there a certain setting that would cause this?

kslimani commented 11 months ago

I am not sure, this may be the source video which is not properly restored after ad playback.

Are you using the playInline option with video element recycle feature ?

Example :

var player = new Clappr.Player({
    // [...]
    playback: {
        playInline: true,
        recycleVideo: Clappr.Browser.isMobile,
    },
    // [...]
});