Is it possible to enable by default the sound in a

2019-07-02 03:43发布

问题:

didn't find a way to enable by default the sound in an AMP Story. Is it possible ? Thanks

回答1:

No, it is not possible to enable audio by default. Browsers often explicitly blacklist this behavior and only allow audio to be enabled after a user gesture, e.g:

  • https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
  • https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/

The global muted state of an amp-story starts off muted; users must always unmute the story for audio to play out.