veplayer-mp-wechat
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.PKG = 'wechat'; | ||
exports.VERSION = '1.2.5'; | ||
exports.VERSION = '1.2.6'; | ||
/** | ||
@@ -30,0 +30,0 @@ * 控制栏状态枚举 |
@@ -358,10 +358,10 @@ "use strict"; | ||
onTimeupdate(e) { | ||
const { seeking } = this.data; | ||
const { seeking, paused } = this.data; | ||
const { currentTime, duration } = e.detail; | ||
const data = { | ||
currentTime: currentTime || 0, | ||
paused: false, | ||
duration: duration || 0, | ||
playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0, | ||
}; | ||
let ext = {}; | ||
if (this.isReplay && paused) { | ||
ext = { paused: false }; | ||
this.isReplay = false; | ||
} | ||
const data = Object.assign({ currentTime: currentTime || 0, duration: duration || 0, playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0 }, ext); | ||
if (seeking) { | ||
@@ -387,2 +387,3 @@ // /* 开发工具中不会触发onSeekComplete */ | ||
}; | ||
this.isReplay = true; | ||
if (seeking) { | ||
@@ -389,0 +390,0 @@ _data.seeking = false; |
{ | ||
"name": "veplayer-mp-wechat", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogram": "dist", |
Sorry, the diff of this file is not supported yet
149007
2874