3197关注9327浏览
直播组件live-player添加bindtap事件在Android中可以响应,在iPhone响应不了,代码如下:
<live-player id="livePlay" src="{{watchUrl == undefined ? '' : watchUrl}}" mode="RTC" autoplay="autoplay" bindstatechange="statechange" data-id="{{watchId}}" bindtap='touchBottom'>
<cover-view class='player_bottom' animation="{{animationData}}" wx:if="{{showModalplayer}}">
<cover-view class='player-play' bindtap="play" wx:if='{{!playindexFlag}}'>
<cover-image src='/static/images/icon/play.png' />
</cover-view>
<cover-view class='player-pause' bindtap="pause" wx:if='{{playindexFlag}}'>
<cover-image src='/static/images/icon/pause.png' />
</cover-view>
<cover-view class='player-right' bindtap="showFullScreen">
<cover-image wx:if="{{livePlayFlag1}}" src='/static/images/icon/all_big.png' />
</cover-view>
<cover-view class='player-right' bindtap="exitFullScreen">
<cover-image wx:if="{{livePlayFlag2}}" src='/static/images/icon/all.png'></cover-image>
</cover-view>
</cover-view>
</live-player>
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多> -
Julian
4人对此回答表示赞同
确实如此!!直接在live-player上bindtap不需要over-view在iPhone上不响应6plus
展开40回复分享发布于 6年前评论(0)
收起评论