-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ME-14380-lazy-ads #535
ME-14380-lazy-ads #535
Conversation
…video-player into ME-14380-lazy-ads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💪
@@ -67,7 +67,6 @@ <h3 class="mb-4">VAST and VPAID</h3> | |||
playsinline | |||
controls | |||
muted | |||
autoplay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the non autoplay was causing a bug it seems that autoplay can be a factor, i would provide two examples one with autoplay and one without.
import 'videojs-contrib-ads'; | ||
import 'videojs-ima'; | ||
import 'videojs-ima/dist/videojs.ima.scss'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This versus having the library code getting copied is 🕺 🚀
@@ -38,11 +36,11 @@ export default function imaPlugin(player, playerOptions) { | |||
if (Object.keys(playerOptions.ads).length > 0 && typeof player.ima === 'object') { | |||
if (playerOptions.ads.adsInPlaylist === 'first-video') { | |||
player.one(PLAYER_EVENT.SOURCE_CHANGED, () => { | |||
player.ima.playAd(); | |||
player.ima.playAdBreak(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the difference between these two methods? just curious or is it just a rename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't look too deep into the history of the change, but looks like it was renamed
✅ Deploy Preview for vp-build ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
No description provided.