是否可以默认启用 amp-story 中的声音? [英] Is it possible to enable by default the sound in amp-story?
本文介绍了是否可以默认启用 amp-story 中的声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
没有找到默认启用 AMP 故事中声音的方法.是否可以 ?谢谢
didn't find a way to enable by default the sound in an AMP Story. Is it possible ? Thanks
推荐答案
不,默认情况下无法启用音频.浏览器通常会明确将此行为列入黑名单,并且只允许在用户手势后启用音频,例如:
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/
amp-story
的全局静音状态从静音开始;用户必须始终将故事取消静音才能播放音频.
The global muted state of an amp-story
starts off muted; users must always unmute the story for audio to play out.
这篇关于是否可以默认启用 amp-story 中的声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文