live-player组件内的 cover-view点击事件触发报错(其他机型暂未发现此问题)
******html********
<live-player id=“videolivePlayer” src="{{playUrl}}" mode=“RTC” autoplay=’{{autoplay}}’ class=“live-player” object-fit=‘contain’ background-mute=“true” bindstatechange=‘livezt’ bindfullscreenchange=“qpzt”>
<cover-view class=‘bind’ bindtap=‘quanpinanniu’>
<cover-view wx:if=’{{fullScreen}}’ hidden=’{{quanpin}}’ bindtap=“tapName” class=‘zhibofanhui’ style=‘width:48rpx;height:48rpx’>
<cover-image src=’…/…/imgs/fanhui.png’ style=‘width:48rpx;height:48rpx’>cover-image>
cover-view>
<cover-view hidden=’{{quanpin}}’ class=‘quanpin’>
<cover-image wx:if=’{{fullScreen}}’ src=’…/…/imgs/quanpin2.png’ style=‘width:64rpx;height:64rpx’>cover-image>
<cover-image wx:else src=’…/…/imgs/quanpin1.png’ style=‘width:64rpx;height:64rpx’>cover-image>
cover-view>
cover-view>
<cover-view class=‘livezwf’ hidden=’{{liveplayzwf==2}}’>
<cover-view class=‘livezwftext’>
{{boxcontent.hyztms}}
cover-view>
<cover-view class=‘livezwftextjszc’>技术支持:xx电子有限公司
cover-view>
cover-view>
<cover-view class=‘top’ bindtap=‘focusshang ’ hidden=’{{livehiddens}}’>
<cover-image src=’…/…/imgs/fahongbao1.png’ class=‘tops’>
cover-image>
<cover-view class=‘guanbi’ bindtap=‘guanbi’>cover-view>
cover-view>
live-player>
******html********
********js*********
tapName: function () {
var videoContext = wx.createLivePlayerContext(“videolivePlayer”)
console.log(1)
if (this.data.fullScreen) {
console.log(2)
videoContext.exitFullScreen({
direction: 0,
success: function() {},
fail: function() {},
})
} else {
console.log(3)
videoContext.requestFullScreen({
direction: -90,
success: function() {},
fail: function() {},
complete: function() {}
})
}
},
*******js********
事件无法触发报错信息如下