[]游戏运行在chrome里面 听不见声音
游戏运行在chrome里面 听不见声音;其它浏览器可以听见声音
开发者模式提示如下:
The AudioContext was not allowed to start. It must be resume (or created) after a user gesture on the page
在下小白 ,请回答的详细点。最好有代码实例;
开发者模式提示如下:
The AudioContext was not allowed to start. It must be resume (or created) after a user gesture on the page
在下小白 ,请回答的详细点。最好有代码实例;
pc端打开chrome浏览器,新建页签,地址栏输入 chrome://flags/#autoplay-policy 选择 No user gesture is required,之后重启浏览器即可,chrome浏览器更新版本后的新增的安全策略。
你缺少手势安全确定!就是浏览器的安全限制,必须有用户手势后才能进行相应操作(比如点击一下屏幕/滑动一下屏幕!)
安卓系统下,会自动播放声音,在iOS系统下,必须要焦点在浏览器内,才开始播放。也就是说,要手指触摸或点击一下屏幕。
你这chrome是什么系统下,安卓的话,不应该吧。
你这chrome是什么系统下,安卓的话,不应该吧。