Chrome中使用Web Audio API自动播放静音音频时AudioContext无法启动的问题求助
Chrome中使用Web Audio API自动播放静音音频时AudioContext无法启动的问题求助
我最近在做一个功能,想让用户打开Chrome页面的时候,用Web Audio API自动播放一段静音的音频。我记得Chrome的规则里说,静音的音频是允许自动播放的,但试了好多次,一直弹出这个错误提示:
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
有没有懂的朋友能帮我排查下问题呀?
备注:内容来源于stack exchange,提问作者Jeffrey Muller
相关产品推荐
相关产品推荐

