You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.13 16:15:29