Giter Site home page Giter Site logo

Comments (4)

kslimani avatar kslimani commented on July 23, 2024

@andrefilimono yes, you can even use your own custom controls while displaying video ad. (keep in mind that controls may be not available on some iOS device in fullscreen mode).

In this plugin, mediacontrols are disabled to avoid user to seek/skip video ad.

Also note this plugin was written some times ago, and since, new Clappr release has now a recycleVideo playback option for mobile : some tricks used in this plugin are no longer needed and the code could be enhanced.

from clappr-google-ima-html5-preroll.

andrefilimono avatar andrefilimono commented on July 23, 2024

But IMA SDK renders custom <video> element inside <iframe> (regardless of passed opt_videoElement in google.ima.AdDisplayContainer). So when I enable mediaControl it is already associated with video file given in the player config and play button starts main video not ad.

But I have no ideas how to connect media controls to SDK`s video element, especially if it is a VPAID ad.

from clappr-google-ima-html5-preroll.

kslimani avatar kslimani commented on July 23, 2024

You are correct about provided video element. This is one reason why i recommend using custom mediacontrol.

Google ima sdk expectation and behaviours may differs depending on if you are attempting to play advert on "desktop" or "mobile" device. (because ad display requirements differs on mobile).

You may be interested in HTML5 IMA SDK sample source code.

from clappr-google-ima-html5-preroll.

andrefilimono avatar andrefilimono commented on July 23, 2024

Thanks!

from clappr-google-ima-html5-preroll.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.