Skip to content
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

Merged
merged 9 commits into from Mar 28, 2018
Merged

refactor: Update autoplay sample and how we report adsWillAutoplay an… #562

merged 9 commits into from Mar 28, 2018

Conversation

shawnbuso
Copy link
Contributor

…d adsWillPlayMuted.

Also deprecates the options ad(s)WillPlayMuted and ad(s)WillAutoPlay.
Fixes #341.
Fixes #484.

type="video/mp4" ></source>
height="360" playsinline>
<source src="//rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
type="video/mp4" ></source>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra indent.

@shawnbuso shawnbuso merged commit b580e21 into googleads:master Mar 28, 2018
bustbr pushed a commit to bustbr/videojs-ima that referenced this pull request Apr 24, 2018
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. |

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

Copy link
Contributor Author

@shawnbuso shawnbuso May 17, 2018

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants