Chrome报错提示最为友善,意思是说,用户还没有交互,不能调play。用户的交互包括哪些呢?包括用户触发的touchend, click, doubleclick或者是 keydown事件,在这些事件里面就能调play.
Chrome 66禁止声音自动播放之后 DOMException: play() failed because the user didn't interact with the document first.
kkcode
2023-06-26阅读 1208
请先登录后参与评论
您的连接不是私密连接 chrome://net-internals/#hsts
