veplayer-mp-wechat
Advanced tools
Comparing version 1.2.5-alpha.1 to 1.2.5
@@ -297,6 +297,2 @@ "use strict"; | ||
let _auto = false; | ||
if (!this.isControlsShow()) { | ||
// 隐藏态则不处理controls的显示切换 | ||
return; | ||
} | ||
if (!interactiveConfig.immersive) { | ||
@@ -303,0 +299,0 @@ if (interactState === "focus" /* InteractStates.FOCUS */) { |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.PKG = 'wechat'; | ||
exports.VERSION = '1.2.5-alpha.1'; | ||
exports.VERSION = '1.2.5'; | ||
/** | ||
@@ -30,0 +30,0 @@ * 控制栏状态枚举 |
@@ -362,2 +362,3 @@ "use strict"; | ||
currentTime: currentTime || 0, | ||
paused: false, | ||
duration: duration || 0, | ||
@@ -384,2 +385,3 @@ playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0, | ||
ended: true, | ||
paused: true, | ||
}; | ||
@@ -386,0 +388,0 @@ if (seeking) { |
@@ -48,9 +48,2 @@ "use strict"; | ||
}, | ||
/** | ||
* 是否ended | ||
*/ | ||
ended: { | ||
type: Boolean, | ||
value: false, | ||
}, | ||
}, | ||
@@ -121,3 +114,3 @@ /** | ||
onClick(e) { | ||
const { paused, ended } = this.data; | ||
const { paused } = this.data; | ||
const data = { | ||
@@ -130,3 +123,3 @@ actionType: 'switch_play_pause', | ||
if (this.media) { | ||
if (paused || ended) { | ||
if (paused) { | ||
this.media.play(); | ||
@@ -133,0 +126,0 @@ } |
{ | ||
"name": "veplayer-mp-wechat", | ||
"version": "1.2.5-alpha.1", | ||
"version": "1.2.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogram": "dist", |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
148859
2873