txv-miniprogram-plugin
txv-miniprogram-plugin copied to clipboard
播放按钮和进度条异常
版本 2.1.0 当用户不点击跳过广告,等广告完整播放完成之后,视频不会自动播放,且播放按钮无效,但是可以通过手势双击播放,但是播放后进度条和播放按钮显示异常。 这个问题再autoply为false时会发生。
复现代码片段
<player-component id="video" vid="{{cVid1}}" autoplay="{{false}}" enablePlayGesture="{{true}}"></player-component>
<button type="primary" style="margin: 5px;" bindtap="playCVid1">视频1</button>
<button type="primary" style="margin: 5px;" bindtap="playCVid2">视频2</button>
const app = getApp()
Page({
data: {
cVid1:'k33012qvncd',
cVid2:'s3301n1zhcm'
},
onLoad() {
},
playCVid1:function(){
const txv = this.selectComponent('#video')
txv.play(this.data.cVid1);
},
playCVid2:function(){
const txv = this.selectComponent('#video')
txv.play(this.data.cVid2);
}
})
补充一下,在2.0.10版本中试了一下,当useNativeUI设置为false时,也存在这个问题
这个是真机上出现的吗?模拟器出现这个问题是已知的,目前看来是模拟器的事件顺序和真机不同。
真机可以复现
目前收到了小米、苹果等机型用户的反馈,我使用苹果测试机也能复现这个问题
我们这边确认下。
暂时可以传max-video-node=1这个属性,这样应该暂时避免这个问题。
大佬,能不能给我同步一下,2.X是怎么使用插件的?多谢多谢。 我使用 1.x 就会报错视频找不到,~G444; 使用 2.x 就会报错,request failed timeout