直播组件live-player 在IOS端使用createLivePlayerContex播放的时候,直接报错
live-player error: insertLivePlayer:fail jsapi has no permission, event=insertLivePlayer, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
代码如下
<live-player
:style="{
width: width,
height: height
}"
:src="data.playUrl"
:autoplay="false"
id="livePlayer"
/>
let id = 'livePlayer';
this.playerCtx = wx.createLivePlayerContext(id, this);
console.log('this.playerCtx', this.playerCtx);
setTimeout(() => {
let that = this;
this.playerCtx.play({
success: function() {
console.log('成功了');
},
error: function() {
}
});
}, 100);
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
微信公众平台管理实时音频开关应该是没有开启