How to make audio autoplay on chrome

后端 未结 17 1886
南旧
南旧 2020-11-22 08:42

audio autoplay working in Mozilla, Microsoft edge and old google chrome as well but not in new google chrome. they have blocked the autoplay. is there any way to make it au

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 09:07

    As of April 2018, Chrome's autoplay policies changed:

    "Chrome's autoplay policies are simple:

    • Muted autoplay is always allowed.

    Autoplay with sound is allowed if:

    • User has interacted with the domain (click, tap, etc.).
    • On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound.
    • On mobile, the user has added the site to his or her home screen.

    Also

    • Top frames can delegate autoplay permission to their iframes to allow autoplay with sound. "

    Chrome's developer site has more information, including some programming examples, which can be found here: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

提交回复
热议问题