Comments (4)
@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.
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.
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.
Thanks!
from clappr-google-ima-html5-preroll.
Related Issues (17)
- Seek bar is not working after ad display (vod)
- HLS not playing after ad on IOS HOT 3
- Issue with Responsive container HOT 2
- Non linear ad support HOT 2
- Companion Ads HOT 3
- Skippable Ads on iOS 10+ HOT 1
- Poster not visible HOT 3
- Fullscreen is broken after ad display HOT 3
- Autoplay Policy HOT 3
- Ad error: AdError 1005: The provided ad type: skippablevideo is not supported. HOT 5
- feat: trigger a new plugin event for ima custom settings
- This is only pre roll? mid rolls? HOT 1
- Autoplay Off but the video start everytime HOT 2
- Access-Control-Allow-Credentials Error HOT 11
- Not working with Clappr.FlasHLS plugin HOT 2
- VAST not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clappr-google-ima-html5-preroll.