veplayer-mp-douyin
Advanced tools
Comparing version 1.0.5-alpha.3 to 1.0.5-alpha.4
@@ -26,2 +26,2 @@ "use strict"; | ||
exports.PKG = 'veplayer-mp-douyin'; | ||
exports.VERSION = '1.0.5-alpha.3'; | ||
exports.VERSION = '1.0.5-alpha.4'; |
@@ -86,2 +86,6 @@ "use strict"; | ||
}, | ||
isShowDataLoading: { | ||
type: Boolean, | ||
value: true, | ||
}, | ||
}, | ||
@@ -145,3 +149,3 @@ data: { | ||
}); | ||
index_2.VE_DEBUGGER.log('set currentSrc', videoId, new Date().getTime() - this._tm); | ||
index_2.VE_DEBUGGER.log('set currentSrc', videoId); | ||
this.updateCollector({ | ||
@@ -174,7 +178,6 @@ src: currentSrc || src, | ||
}); | ||
this._tm = new Date().getTime(); | ||
index_2.VE_DEBUGGER.log('serviceRequest start', this.data.videoId); | ||
(0, request_1.serviceRequest)(playAuthToken, playDomain || undefined) | ||
.then(data => { | ||
index_2.VE_DEBUGGER.log('serviceRequest res', this.data.videoId, new Date().getTime() - this._tm, data); | ||
index_2.VE_DEBUGGER.log('serviceRequest res', this.data.videoId, data); | ||
if (data.error) { | ||
@@ -365,4 +368,3 @@ this.setData({ | ||
const { isLoadingData, currentSrc, allowNullSource, videoId } = this.data; | ||
const _t = new Date().getTime(); | ||
index_2.VE_DEBUGGER.log(videoId, 'onError', videoId, _t - this._tm, `isLoadingData:${isLoadingData} currentSrc:${!!currentSrc} allowNullSource:${allowNullSource} isReturn:${!currentSrc && (allowNullSource || isLoadingData)}`, e.detail); | ||
index_2.VE_DEBUGGER.log(videoId, 'onError', videoId, `isLoadingData:${isLoadingData} currentSrc:${!!currentSrc} allowNullSource:${allowNullSource} isReturn:${!currentSrc && (allowNullSource || isLoadingData)}`, e.detail); | ||
if (!currentSrc && (allowNullSource || isLoadingData)) { | ||
@@ -369,0 +371,0 @@ console.warn('The is unavailable [src] or [playAutoToken] for playback, please check~~'); |
{ | ||
"name": "veplayer-mp-douyin", | ||
"version": "1.0.5-alpha.3", | ||
"version": "1.0.5-alpha.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogramType": "tt-npm", |
Sorry, the diff of this file is not supported yet
2183
138061