ampproject / amphtml

The AMP web component framework.
https://amp.dev
Apache License 2.0
14.89k stars 3.89k forks source link

[Story] Video are freezing and user need to tape a second time to play it #37523

Open llccrr opened 2 years ago

llccrr commented 2 years ago

Description

The video is freezing on the first frame of the video. It happens with cache="google" (dunno if it happens without) It seems to only occurs when the Story is embedded in an iFrame or maybe it's linked to some queryString

EDIT: I mapped it a long time ago, it was happening in the AmpStory Player, but now it also occurs in our custom Player so I edited the issue.

Reproduction Steps

Customer Website -> Click on the Round Bubble on MacOS Safari, re-try if you do not have the bug.

https://aguablanca.co/product/haute-couture-by-lightning/teinture/haute-couture-rouge-vif/teinture-textile-rouge-vif-856

Relevant Logs

image

Browser(s) Affected

Safari Version 15.3 (17612.4.9.1.5) - Only version tested

OS(s) Affected

MacOS

Device(s) Affected

No response

AMP Version Affected

No response

llccrr commented 2 years ago

Have you been able to reproduce ?

mszylkowski commented 2 years ago

(Updating this issue with our offline discussion) would be useful to have an minimal demo with the open-source web player to debug this, otherwise it may be an issue with the viewer API integration of the Join Player (which you'd have to debug separately).

llccrr commented 2 years ago

I do have the bug with an Open Source Player, but it seems actually slightly different since with the Open Source Player it freezes, but the autoplay keep going whereas with Join Player it freezes and the autoplay is also frozen Example with Open Source Player : https://6832h8.csb.app Video : https://user-images.githubusercontent.com/15107671/172565535-76a235c9-b204-455a-872b-1507d49252fd.mov

EDIT : A story without any player here where the same bug occurs (autoplay keeps playing): https://tajinebanane.my.join-stories.com/tee-shirt-diy-az4W_WU/

mszylkowski commented 2 years ago

Refreshed 20+ times on the player and individual story (the last links you commented) without reproducing the bug so I doubt it's the same issue (on your player impl the story doesn't play 100% of times). I recommend checking the render_ method of the open source player to see if all the steps are handled properly:

https://github.com/ampproject/amphtml/blob/9cfa89fc95b4eedfeb00b4eec539909f0b0c0f6e/src/amp-story-player/amp-story-player-impl.js#L1195-L1260

llccrr commented 2 years ago

So indeed it's not the same bug, the first one which happens 100% of time seems to be linked to the "auto unmute" the Stories in an iframe (not permitted on Safari) so it is on our side. However, there is still the bug that freezes with the autoplay that continues.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.