easy-player-pro 0.1.9 → 0.1.10
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultConfig } from "./config";
|
|
2
|
-
import {
|
|
2
|
+
import { mergeWith } from 'lodash-es';
|
|
3
3
|
export class EasyPlayerPro {
|
|
4
4
|
constructor(container, config) {
|
|
5
5
|
this.player = null;
|
|
@@ -114,7 +114,11 @@ export class EasyPlayerPro {
|
|
|
114
114
|
*/
|
|
115
115
|
this.onError = (err) => {
|
|
116
116
|
};
|
|
117
|
-
this.config =
|
|
117
|
+
this.config = mergeWith({}, defaultConfig, config, (objValue, srcValue) => {
|
|
118
|
+
if (Array.isArray(objValue)) {
|
|
119
|
+
return srcValue;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
118
122
|
this.container = container;
|
|
119
123
|
this.player = new window.EasyPlayerPro(this.container, this.config);
|
|
120
124
|
this.videoElement = this.player.$container.querySelector('video');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-player-pro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
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",
|