默认情况下是否可以启用amp-story中的声音? [英] Is it possible to enable by default the sound in amp-story?

查看:112
本文介绍了默认情况下是否可以启用amp-story中的声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到默认启用AMP Story中声音的方法. 是否有可能 ? 谢谢

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆