veplayer-mp-douyin
Advanced tools
Comparing version
@@ -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 = 'douyin'; | ||
exports.VERSION = '1.2.5-alpha.1'; | ||
exports.VERSION = '1.2.5'; | ||
/** | ||
@@ -30,0 +30,0 @@ * 控制栏状态枚举 |
@@ -437,2 +437,3 @@ "use strict"; | ||
currentTime: currentTime || 0, | ||
paused: false, | ||
duration: duration || 0, | ||
@@ -459,2 +460,3 @@ playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0, | ||
ended: true, | ||
paused: false, | ||
}; | ||
@@ -461,0 +463,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-douyin", | ||
"version": "1.2.5-alpha.1", | ||
"version": "1.2.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogramType": "tt-npm", |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
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
-50%161011
-0.18%3023
-0.3%1
Infinity%