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

add a 'paused' visibility state #1538

Closed
ericfs opened this issue Jan 22, 2016 · 2 comments
Closed

add a 'paused' visibility state #1538

ericfs opened this issue Jan 22, 2016 · 2 comments

Comments

@ericfs
Copy link

ericfs commented Jan 22, 2016

When an document is swiped in the viewer, it is still visible in the window, but it also shouldn't be considered fully visible. For example, it would be good to pause videos.

The viewer will still send hidden to mean that the doc is completely hidden to the user.

@cramforce
Copy link
Member

Tracked at Google in issue 26746276

@rudygalfi rudygalfi modified the milestones: M1, M2 Feb 4, 2016
jridgewell added a commit to jridgewell/amphtml that referenced this issue Feb 26, 2016
Implements a “standardized” visibility API with control from the viewer
and browser document.

- Allows the Viewer to send the `paused` state when the users swipes
  between AMP docs. (closes ampproject#1655, ampproject#1538)
- Adds the `prerender` visibility state when the AMP document has not
  been shown yet.
- Adds the `inactive` visibility state when the AMP document is not
  active.
- Changes the `hidden` visibility to mean the AMP doc is active but the
  browser tab is not visible.
@jridgewell
Copy link
Contributor

Closed by #2212.

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

No branches or pull requests

4 participants