iphone6s plus cover-view点击事件触发报错
发布于 5 年前 作者 jwen 5260 次浏览 来自 问答

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********

事件无法触发报错信息如下

3 回复

怎么样  这个问题搞定了吗

你好,这是一个已知问题,iOS10.3以下有问题,我们今明内会进行修复。

卧槽。。你这图。。我啥都不想说了

回到顶部