使用createRewardedVideoAd播放激励式广告后,视频组件中的bindcontrolstoggle在安卓中不断被触发,导致监听失效
<video src="{{playVideoUrl}}" id="myVideo" class="video-style"
controls="{{showControls}}" show-center-play-btn="{{true}}" show-play-btn="{{true}}" show-casting-button="{{true}}" bindcontrolstoggle="controlstoggle"
bindtimeupdate="timeupdate" bindplay="playAd">
<view class="seekLeft" bindtap="changeSeek" hidden="{{!(vod_tip)}}" data-type="backOff">
<image src="/images/seek-left.png"></image>
</view>
<view class="seekRight" bindtap="changeSeek" hidden="{{!(vod_tip)}}" data-type="forward">
<image src="/images/seek-right.png"></image>
</view>
<view class="themeBtn" bindtap="changeModel" hidden="{{!(vod_tip)}}">
<image src="{{theme == 'white' ? '/images/night.png' : '/images/sun.png'}}"></image>
</view>
</video>
/**
* 监听遮罩层
* @param {*} e
*/
controlstoggle: function (e) {
let _this = this;
wx.showToast({
title: !_this.data.vod_tip+'!!!!!!!',
icon: 'none',
})
_this.setData({
vod_tip: !_this.data.vod_tip
})
},