小程序运维中心一直报错setBackgroundAudioState:fail: jsapi has no permission, event=setBackgroundAudioState, runningState=background, permissionMsg=permission ok, detail=jsapi permission required playing audio but current not playing audio in background state;at App get function;at api setBackgroundAudioState fail callback function Error: setBackgroundAudioState:fail: jsapi has no permission, event=setBackgroundAudioState, runningState=background, permissionMsg=permission ok, detail=jsapi permission required playing audio but current not playing audio in background state at Function.fail (WASubContext.js:1:728454) at WASubContext.js:1:389347 at v (WASubContext.js:1:389516) at WASubContext.js:1:390380)
不懂这个是报的什么权限未开放,但是手机可以正常播放
我也遇到相同的问题,就是
1.在后台音乐播放的面板上,点击暂停,有时候会报这个错,然后此后台音乐控制面板会消失,再次打开小程序(切换前台时,音乐时停止的);
2.或者在暂停播放的情况下按切换上一首或下一首歌,一定会出现这个问题;
开发时候能复现吗?
不能在后台调用