easy-player-pro 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,8 +120,14 @@ export class EasyPlayerPro {
|
|
|
120
120
|
this.isDestroy = false;
|
|
121
121
|
this.controller = new AbortController();
|
|
122
122
|
this.signal = this.controller.signal;
|
|
123
|
-
this.player.on('play', () =>
|
|
124
|
-
|
|
123
|
+
this.player.on('play', () => {
|
|
124
|
+
this.player.$container.querySelector('.easyplayer-controls-code-wrap').style.display = 'none';
|
|
125
|
+
this.onPlay();
|
|
126
|
+
});
|
|
127
|
+
this.player.on('pause', () => {
|
|
128
|
+
this.player.$container.querySelector('.easyplayer-controls-code-wrap').style.display = 'none';
|
|
129
|
+
this.onPause();
|
|
130
|
+
});
|
|
125
131
|
this.player.on('videoInfo', (videoInfo) => this.onVideoInfo(videoInfo));
|
|
126
132
|
this.player.on('audioInfo', (audioInfo) => this.onAudioInfo(audioInfo));
|
|
127
133
|
this.player.on('fullscreen', (isFullscreen) => this.onFullscreen(isFullscreen));
|
|
@@ -182,7 +188,6 @@ export class EasyPlayerPro {
|
|
|
182
188
|
else {
|
|
183
189
|
this.player.play(url).then(() => {
|
|
184
190
|
setTimeout(() => {
|
|
185
|
-
this.player.$container.querySelector('.easyplayer-controls-code-wrap').style.display = 'none';
|
|
186
191
|
resolve();
|
|
187
192
|
}, 300);
|
|
188
193
|
}).catch(reject);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-player-pro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "easy-player-pro 是一款能够同时支持HTTP、HTTP-FLV、HLS(m3u8)、WS、WEBRTC、FMP4视频直播与视频点播等多种协议,支持H.264、H.265、AAC、G711A、Mp3等多种音视频编码格式,支持MSE、WASM、WebCodec等多种解码方式,支持Windows、Linux、Android、iOS全平台终端的H5播放器,使用简单, 功能强大",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc"
|
|
8
|
+
"build": "node build.js && tsc"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"lib"
|