veplayer-mp-douyin
Advanced tools
Comparing version 0.1.15-alpha.0 to 0.1.15-alpha.1
@@ -222,3 +222,4 @@ "use strict"; | ||
ready() { | ||
const { controls } = this.properties; | ||
const { controls, playBtnPosition } = this.properties; | ||
const { loadedMeta, paused } = this.data; | ||
this.updateStatusOfShowLoading(); | ||
@@ -229,2 +230,3 @@ // console.log(`!!!!!Player${this.data.videoId} ready`, `controls:${controls}`, `data.controls:${this.data.controls}`) | ||
this.updateCollector(this.data); | ||
// console.log('>>>onReady', `playBtnPosition:${playBtnPosition} loadedMeta:${loadedMeta} paused:${paused}`) | ||
}, | ||
@@ -240,2 +242,3 @@ /** | ||
index_3.default.removeMedia(this.data.videoId); | ||
this.triggerCollector('detached', {}); | ||
this.destroyCollector(); | ||
@@ -385,3 +388,3 @@ }, | ||
} | ||
if (paused) { | ||
if (!seeking && paused) { | ||
data.paused = false; | ||
@@ -388,0 +391,0 @@ } |
{ | ||
"name": "veplayer-mp-douyin", | ||
"version": "0.1.15-alpha.0", | ||
"version": "0.1.15-alpha.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogramType": "tt-npm", |
@@ -45,3 +45,3 @@ # Veplayer小程序播放器 | ||
"usingComponents": { | ||
"ve-video": "ext://veplayer-mp-douyin/veplayer" // 抖音开发者工具4.1.0 之前的版本需要引用手动拷贝到 components 的包即 "/components/veplayer-mp-douyin/dist/index" | ||
"veplayer": "ext://veplayer-mp-douyin/veplayer" // 抖音开发者工具4.1.0 之前的版本需要引用手动拷贝到 components 的包即 "/components/veplayer-mp-douyin/dist/index" | ||
} | ||
@@ -81,3 +81,3 @@ } | ||
<!-- 以下是对小程序播放器组件的引用 --> | ||
<ve-video | ||
<veplayer | ||
id="videoContainer" | ||
@@ -89,3 +89,3 @@ showPlayBtn | ||
logInfo="{{logInfo}}" | ||
></ve-video> | ||
></veplayer> | ||
</view> | ||
@@ -97,3 +97,3 @@ ``` | ||
<!-- 以下是对一个播放器组件的引用 --> | ||
<ve-video | ||
<veplayer | ||
id="videoContainer" | ||
@@ -106,3 +106,3 @@ showPlayBtn | ||
logInfo="{{logInfo}}" | ||
></ve-video> | ||
></veplayer> | ||
</view> | ||
@@ -305,3 +305,3 @@ ``` | ||
"usingComponents": { | ||
"ve-video": "/ttcomponents/veplayer-mp-douyin/dist/index" | ||
"veplayer": "/ttcomponents/veplayer-mp-douyin/dist/index" | ||
}, | ||
@@ -311,3 +311,3 @@ // #endif | ||
"usingComponents": { | ||
"ve-video": "/ttcomponents/veplayer-mp-douyin/dist/index" | ||
"veplayer": "/ttcomponents/veplayer-mp-douyin/dist/index" | ||
}, | ||
@@ -329,3 +329,3 @@ // #endif | ||
<!-- 在页面中对自定义组件进行引用 --> | ||
<ve-video | ||
<veplayer | ||
id="video" | ||
@@ -405,3 +405,3 @@ :src="src" | ||
```xml | ||
<ve-video | ||
<veplayer | ||
id="video" | ||
@@ -415,3 +415,3 @@ tagType="video-player" | ||
... | ||
></ve-video> | ||
></veplayer> | ||
``` | ||
@@ -478,3 +478,3 @@ | ||
usingComponents: { | ||
veplayer: '../../ttcomponents/veplayer-mp-douyin/dist', | ||
veplayer: '../../ttcomponents/veplayer-mp-douyin/dist/index', | ||
}, | ||
@@ -481,0 +481,0 @@ }); |
Sorry, the diff of this file is not supported yet
130072
1973