ampproject / ampproject/amphtml
[Story Player] Set visibilitystate to PAUSED as user is swiping
Open
P1: High Priority
Stale
Type: Feature Request
WG: stories
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Expected behavior:
1. Story is prerendered and not visible to users yet: visibilitystate PRERENDER
2. Story is playing: visibilitystate VISIBLE
3. User is currently swiping: visibilitystate PAUSED
4. User is done swiping, story is no longer visible: visibilitystate INACTIVE
I believe (3) is not implemented and will start showing content flashes as we fix https://github.com/ampproject/amphtml/issues/28927 or https://github.com/ampproject/amphtml/issues/28650
cc @ampproject/wg-stories
Contributor guide
Assessment
This issue has not been assessed yet.