<video
id="mediaWrapper"
class="relative w-full h-[420rpx]"
object-fit="cover"
:src="src"
:poster="poster"
:initial-time="initialTime"
show-center-play-btn
show-mute-btn
controls
@play="onPlay"
@pause="onPause"
@ended="onEnded"
@error="videoErrorCallback"
></video>
jsapi has no permission, event=onVideoLoadStart, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
Error: jsapi has no permission, event=onVideoLoadStart, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
jsapi has no permission, event=onVideoLoadStart, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
提示是jsapi 没有权限,你调用接口的时候初始化权限了吗
这个里边的放在下边jsApiList里边
wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: '', // 必填,公众号的唯一标识
timestamp: , // 必填,生成签名的时间戳
nonceStr: '', // 必填,生成签名的随机串
signature: '',// 必填,签名
jsApiList: [] // 必填,需要使用的JS接口列表
});