live-pusher在后台状态下报错
【场景说明】:
使用的腾讯 trtc组件实现视频通话,
前台一切正常,
当进入后台 “hide”后, 想要结束视频通话,调用了trtc的exitRoom,发生live-pusher 的报错, 导致远端只收到用户停止推流, 并未收到用户退出房间,
直到小程序再次恢复到前台后,才真正完成了exitRoom;
【代码片段】:
onHide() {
console.log("===== onHide: ", Date.now());
this.trtcComponent.unpublishLocalAudio();
this.trtcComponent.unpublishLocalVideo();
this.trtcComponent.exitRoom();
},
【日志明细】:
operateLivePusher:fail jsapi has no permission, event=operateLivePusher, runningState=background, permissionMsg=permission got, detail=jsapi has no permission
1 回复