-
Notifications
You must be signed in to change notification settings - Fork 284
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
refactor: Update autoplay sample and how we report adsWillAutoplay an… #562
Conversation
…d adsWillPlayMuted. Also deprecates the options ad(s)WillPlayMuted and ad(s)WillAutoPlay. Fixes #341.
…tAdsWillAutoplay.
…f it's required to run the samples then it should probably be in dependencies.
examples/autoplay/index.html
Outdated
type="video/mp4" ></source> | ||
height="360" playsinline> | ||
<source src="//rmcdn.2mdn.net/Demo/vast_inspector/android.mp4" | ||
type="video/mp4" ></source> |
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.
nit: extra indent.
googleads#562) * refactor: Update autoplay sample and how we report adsWillAutoplay and adsWillPlayMuted. Also deprecates the options ad(s)WillPlayMuted and ad(s)WillAutoPlay. Fixes googleads#341. * Update README to indicate that setAdWillPlayMuted is deprecated. * Use getPlayerOptions() instead of vjsPlayer.options_ in controller getAdsWillAutoplay. * Add can-autoplay to release script for gh-pages. * Move can-autoplay from devDependencies to dependencies. I feel like if it's required to run the samples then it should probably be in dependencies. * Fix lint errors. * Move accidental extra file. * Fix example - check unmuted support first, then muted.
@@ -91,7 +91,7 @@ the previous snippet. A summary of all settings follows: | |||
| adLabel | string | Replaces the "Advertisement" text in the ad label. Added for multilingual UI support. | | |||
| adsRenderingSettings | object | JSON object with ads rendering settings as defined in the IMA SDK,Docs(1). | | |||
| autoPlayAdBreaks | boolean | Whether or not to automatically play VMAP or ad rules ad breaks. Defaults,to true. | | |||
| adWillPlayMuted | boolean | Notifies the SDK whether the player intends to start ad while muted. Changing this setting will have no impact on ad playback. Defaults,to false. | | |||
| **deprecated** adWillPlayMuted | boolean | Notifies the SDK whether the player intends to start ad while muted. Changing this setting will have no impact on ad playback. Defaults,to false. | |
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.
Not seeing this as being deprecated. Where do you see this as deprecated? https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdsRequest.setAdWillPlayMuted
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 isn't deprecated by IMA, we're just deprecating the setting in the plugin because we added logic to detect it automatically. We don't need folks who implement the plugin to tell us if their ad will play muted or not - we can just check if it will within the plugin.
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.
That makes sense. FYI, the auto-detect wasn't working with our implementation, we got a message from Google saying that we weren't setting this when we should be.
…d adsWillPlayMuted.
Also deprecates the options ad(s)WillPlayMuted and ad(s)WillAutoPlay.
Fixes #341.
Fixes #484.