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

[Question]Ability to pause player while Ad is playing #3532

Closed
jazimm opened this issue Dec 1, 2017 · 4 comments
Closed

[Question]Ability to pause player while Ad is playing #3532

jazimm opened this issue Dec 1, 2017 · 4 comments
Assignees

Comments

@jazimm
Copy link

jazimm commented Dec 1, 2017

I read that you believe the user should not be able to interact with any user controls while a Video Ad is playing but it seems the user should be able to pause/play the Ad at a minimum to avoid having to restart an Ad if they don't wish to watch it at that time. Is there any functionality to access the players pause/play functionality while the ad is playing on v2.5? Thanks.

@andrewlewis
Copy link
Collaborator

Apps can call setPlayWhenReady(false) while an ad is playing to pause it. The provided UI controls are hidden during ads unless the player is paused (so for example, if you pause the player then seek past an ad the controls will be shown until the player is unpaused), but your app can provide custom controls that allow the user to play/pause during ads if desired.

@jazimm
Copy link
Author

jazimm commented Dec 4, 2017

Thanks Andrew, I should have been more specific in asking if there was a way to turn on the user controls or allow the container ui to be clickable in order to set the setPlayWhenReady(true/false) when the user clicks on the ad container or parent as the ability to click the ad container or parents seems to be disabled while the ad is playing? Thanks

ojw28 pushed a commit that referenced this issue Dec 12, 2017
Issue: #3532

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178372763
@ojw28 ojw28 reopened this Dec 12, 2017
@ojw28 ojw28 closed this as completed Dec 12, 2017
ojw28 pushed a commit that referenced this issue Dec 12, 2017
Issue: #3532

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178372763
@raunakyadav
Copy link

Hi,
Is there a way to stop the autoplay of ads. Using setPlayWhenReady(false) stops the autoplay at start but if we wait around 2-3 secs and then click play, it skips the ad and jumps to playing content video. How can I enforce that the content is played only after ad completes? Same is observed on the demo app.

@andrewlewis
Copy link
Collaborator

@raunakyadav Thanks for reporting. I've filed #3764 to track this.

@google google locked and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants