收藏
回答

video更新时间时错乱是为什么?

<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);

  },

回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    04-09

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    04-09
    有用
    回复
登录 后发表内容