Is it possible to enable by default the sound in amp-story?

你说的曾经没有我的故事 提交于 2020-01-04 04:08:06

问题


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.



来源:https://stackoverflow.com/questions/48775292/is-it-possible-to-enable-by-default-the-sound-in-amp-story

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!