How to solve the problem that the autoplay of the video tag is invalid?

as mentioned above, it is normal under window+chrome, but not mac+chrome. Users must interact with the page to start playback.
this is the description address of a chrome update video mechanism I found on the Internet: https://developers.google.com.

.

is this question unsolved now? If chrome does decide that user interaction is necessary, why is there no such restriction under window?

Mar.24,2021

should be finished, and then attach the URL, right?

  • Autoplay with sound is allowed if:

    • On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound.

so user interaction is required. or chrome://media-engagement Is High is Yes

so nine out of ten wins are tested too much, and the MEI is high enough.

The solution to the

problem is as recommended by Google. Automatic playback of mute is allowed, and the user clicks and then plays the sound.

  

those who have not done mac, ios does not support autoplay, direct rough getElementById (). Play () solution.

Menu