<view class="video-container">
<video src="{{videoUrl}}"
binderror="videoErrorCallback"
initial-time="{{initialTime}}"
autoplay="{{true}}"
show-progress="{{false}}"
enable-progress-gesture="{{false}}"
bindplay = "playVideo"
enable-auto-rotation ="{{true}}"
loop = "true"
bindended = "videoEnd"
bindpause = "videoPause"
play-btn-position="bottom"
bindtimeupdate= "videoTime"
show-play-btn="{{true}}"></video>
</view>
videoTime(e) {
this.setData({
playTime: e.detail.currentTime,
duration: e.detail.duration,
initialTime: e.detail.currentTime
});
console.log("play_time"+this.data.playTime);
},
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。