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

Video does not start playing automatically for amp-video/autoplay video on Safari. #39244

Open
pallmk opened this issue Jul 12, 2023 · 4 comments

Comments

@pallmk
Copy link
Collaborator

pallmk commented Jul 12, 2023

Description

Video does not start playing automatically for amp-video/autoplay video.

Reproduction Steps

  1. Opt into a beta version of AMP
  2. Open dev tools console
  3. Load an AMP webpage
https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fexamples%2Fcomponents%2Famp-video&format=websites
  4. Check 2nd video

Excepted Result:
Video should start to play automatically, when you open page.

Actual result:
Video does not play. After selecting play button sometimes screen goes dark.
https://screencast.googleplex.com/cast/NjQ3MTE5NjE1MDMzMzQ0MHw3Yzk0MWYwOC01MA

Note: After many refreshes it shows fallback message- Your browser doesn't support HTML5 video.
https://screencast.googleplex.com/cast/NTM0OTcyMTUzNjIwMDcwNHwyMjYyYWJiOS04ZA

Environment:

Device: Macbook Pro

Browser: Safari

Version 16.5.1 (18615.2.9.11.7)
Beta /Experimental version 2306301917000

Relevant Logs

No response

Browser(s) Affected

Safari

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

2306301917000

@pallmk pallmk changed the title Video does not start playing automatically for amp-video/autoplay video. Video does not start playing automatically for amp-video/autoplay video on Safari. Jul 12, 2023
@erwinmombay erwinmombay self-assigned this Jul 12, 2023
@pallmk
Copy link
Collaborator Author

pallmk commented Jul 18, 2023

Desktop safari:
For amp-ima-video, ADV should display before playing of video content. For 3rd video it does play but after ads played screen goes dark. For 1st ad 2nd video after selecting play button screen goes dark.

Load an AMP webpage link: https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fexamples%2Fcomponents%2Famp-ima-video&format=websites

https://screencast.googleplex.com/cast/NTE4MDg1MjA4NTQ1Njg5NnxjYmE5MjI5NC1jNg

@erwinmombay erwinmombay removed their assignment Jul 19, 2023
@erwinmombay
Copy link
Member

hmm i believe this might just be normal behavior on safari, ill try and dig up some docs to make sure

@erwinmombay
Copy link
Member

@pallmk while on the playground page, could you go to safari's preferences -> websites -> auto-play and check the settings of the page? it looks like the default for safari is "stop media with sound". so this behavior you reported seems intended

@pallmk
Copy link
Collaborator Author

pallmk commented Jul 24, 2023

I have tried changing with the above settings but see same results. Let me know if I need to try any other settings.
Thanks.
https://screencast.googleplex.com/cast/NDczNTk2OTcwMjk2OTM0NHw1YzAzMGEwOS05Zg

@erwinmombay erwinmombay added WG: components Component: amp-video & interface amp-video and video interface/manager labels Aug 21, 2023
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

2 participants