ampproject / ampproject/amphtml

Webstory player - Rewind method doesn't reset the cover image

Open
#35,399 1 comment 0 reactions 1 assignee Claimed by @processprocess View on GitHub
Stale Type: Bug WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

I'm trying to reset the state of the webstory player when reloading the page. I used the rewind method when finish page loading, that way I can start over the first story again.
However, If I was in a step different from the first one, after rewind it doesn't load the initial cover image.

### Reproduction Steps

1. Load webstory and navigate through the pages.
2. Stop navigation in a webstory page different from first one and reload the web page.
3. run player.rewind() to make the webstory to start again from the first webstory page.
Result: Initial cover image is not loading even if the player is now in the first webstory page.
![image](https://user-images.githubusercontent.com/4790488/127032659-5469c0cb-1c6d-4ee8-99af-c0257f8ee970.png)

### Relevant Logs

_No response_

### Browser(s) Affected

_No response_

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

v0

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.