veplayer-mp-wechat
Advanced tools
Comparing version 1.2.6 to 1.2.7-alpha.0
@@ -35,2 +35,7 @@ "use strict"; | ||
}, | ||
// 当前实例是否是激活状态 | ||
activeState: { | ||
type: String, | ||
value: 'default', // standby - 备用状态 active - 激活撞他 | ||
}, | ||
}, | ||
@@ -65,2 +70,7 @@ data: { | ||
}, | ||
activeState: function activeState() { | ||
const { activeState } = this.data; | ||
index_1.VE_DEBUGGER.log('activeState change', activeState); | ||
this.triggerCollector(index_2.ExtendsEvents.ACTIVE, { activeState }); | ||
}, | ||
}, | ||
@@ -67,0 +77,0 @@ lifetimes: { |
@@ -207,2 +207,6 @@ "use strict"; | ||
}, | ||
// 不传则不添加该属性, 用于解决卡顿问题,见https://blog.csdn.net/qq_35946021/article/details/128980219 | ||
customCache: { | ||
type: Boolean, | ||
} | ||
}, | ||
@@ -209,0 +213,0 @@ data: {}, |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.PKG = 'wechat'; | ||
exports.VERSION = '1.2.6'; | ||
exports.VERSION = '1.2.7-alpha.0'; | ||
/** | ||
@@ -30,0 +30,0 @@ * 控制栏状态枚举 |
@@ -54,3 +54,3 @@ "use strict"; | ||
type: Number, | ||
value: 0, | ||
value: 1, | ||
}, | ||
@@ -61,7 +61,2 @@ loadingText: { | ||
}, | ||
// 当前实例是否是激活状态 | ||
isActive: { | ||
type: Boolean, | ||
value: true, | ||
}, | ||
}, | ||
@@ -116,7 +111,2 @@ data: { | ||
}, | ||
'isActive': function isActive() { | ||
const { isActive } = this.data; | ||
index_3.VE_DEBUGGER.log('isActive change', isActive); | ||
this.triggerCollector(index_1.ExtendsEvents.ACTIVE, { isActive }); | ||
}, | ||
'currentSrc': function () { | ||
@@ -134,5 +124,5 @@ const { currentSrc, src } = this.data; | ||
'src,definitionList,playAuthToken,playDomain': function () { | ||
const { src, definitionList, playAuthToken, playDomain, isLoadingData } = this.data; | ||
const { src, definitionList, playAuthToken, playDomain, isLoadingData, currentSrc } = this.data; | ||
index_3.VE_DEBUGGER.log('sourceChange', src, playAuthToken, isLoadingData); | ||
this.triggerCollector('break'); | ||
currentSrc !== src && this.triggerCollector('break'); | ||
this.updateCollector(this.data); | ||
@@ -139,0 +129,0 @@ // playAuthToken |
@@ -142,3 +142,3 @@ "use strict"; | ||
this.dragStartTime = -1; | ||
this.media.seek(seekTime); | ||
this.media && this.media.seek(seekTime); | ||
}, | ||
@@ -145,0 +145,0 @@ onProgressChanging(e) { |
{ | ||
"name": "veplayer-mp-wechat", | ||
"version": "1.2.6", | ||
"version": "1.2.7-alpha.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogram": "dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
155335
2878
2