play() failed because the user didn't interact with the document first
转载声明:
本文为摘录自“csdn博客”,版权归原作者所有。
温馨提示:
为了更好的体验,请点击原文链接进行浏览
摘录时间:
2020-11-26 16:24:15
vue使用js调用音频文件报错,错误信息如下:
play() failed because the user didn't interact with the document first
翻译:play方法调用失败,因为用户没有先操作文档【用户没有先去跟网页做交互再执行音频播放】
用户再跟网页有了交互后,该报错不会再出现
如果必须再网页加载完就播放音频,详情请看