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

Fixes viewer swipe not pausing videos on subsequent plays #4385

Merged
merged 5 commits into from Aug 5, 2016

Conversation

aghassemi
Copy link
Contributor

@aghassemi aghassemi commented Aug 4, 2016

Fixes #4363
This was caught by error logging @jridgewell suggested we add to #4137 👏

So in the VSM, going from visible || hidden to inactive calls unload which itself also calls pause on all resources. The issue is coming back from invisible to those states, does not call resume which means all components stay paused (paused_ == true) which is not correct.

This PR causes inactive to visible || hidden state change to call resume in addition to doing a pass.

@aghassemi aghassemi changed the title Fixed viewer swipe not pausing videos on subsequent plays Fixes viewer swipe not pausing videos on subsequent plays Aug 4, 2016
@dvoytenko
Copy link
Contributor

LGTM

@aghassemi aghassemi merged commit 4a93313 into ampproject:master Aug 5, 2016
mityaha pushed a commit to ooyala/amphtml that referenced this pull request Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Video
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants