ampproject / ampproject/amphtml

[Story Player] Set visibilitystate to PAUSED as user is swiping

Open
#29,691 3 comments 0 reactions 1 assignee Claimed by @gmajoulet View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.