@volcengine/veplayer 2.5.0 → 2.6.0-rc.0
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.
- package/esm/index.d.ts +0 -1
- package/esm/veplayer.biz.live.development.js +19 -188
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +155 -37
- package/esm/veplayer.development.js +16 -41
- package/esm/veplayer.live.d.ts +155 -38
- package/esm/veplayer.live.development.js +16 -41
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +0 -1
- package/esm/veplayer.vod.development.js +3 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +0 -1
- package/umd/veplayer.biz.live.development.js +19 -188
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +155 -37
- package/umd/veplayer.development.js +16 -41
- package/umd/veplayer.live.d.ts +155 -38
- package/umd/veplayer.live.development.js +16 -41
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +0 -1
- package/umd/veplayer.vod.development.js +3 -6
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +155 -37
- package/veplayer.live.d.ts +155 -38
- package/veplayer.vod.d.ts +0 -1
|
@@ -1461,7 +1461,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
|
-
var version = "3.0.21-rc.
|
|
1464
|
+
var version = "3.0.21-rc.3";
|
|
1465
1465
|
var ERROR_TYPE_MAP = {
|
|
1466
1466
|
1: "media",
|
|
1467
1467
|
2: "media",
|
|
@@ -12917,15 +12917,11 @@ var __publicField = (obj, key, value) => {
|
|
|
12917
12917
|
const { XGVideoPlugin } = await load(DynamicModule.PluginXgvideo);
|
|
12918
12918
|
return XGVideoPlugin == null ? void 0 : XGVideoPlugin.isSupported();
|
|
12919
12919
|
}
|
|
12920
|
-
function isMMSSupported$1() {
|
|
12921
|
-
return typeof ManagedMediaSource !== "undefined";
|
|
12922
|
-
}
|
|
12923
12920
|
const util = {
|
|
12924
12921
|
...util$1,
|
|
12925
12922
|
getStreamType,
|
|
12926
12923
|
isMseSupported: isMseSupported$1,
|
|
12927
12924
|
isSoftDecodeSupported: isSoftDecodeSupported$1,
|
|
12928
|
-
isMMSSupported: isMMSSupported$1,
|
|
12929
12925
|
appendSearchParams,
|
|
12930
12926
|
getUrlObject
|
|
12931
12927
|
};
|
|
@@ -13138,6 +13134,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13138
13134
|
}
|
|
13139
13135
|
// 有音量修改,取消静音
|
|
13140
13136
|
handleVolumechange() {
|
|
13137
|
+
this._state.mode = this.player.muted ? 1 : 0;
|
|
13141
13138
|
if (!this._state.showUnmuteBt)
|
|
13142
13139
|
return;
|
|
13143
13140
|
this._state.showUnmuteBt = false;
|
|
@@ -13847,7 +13844,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13847
13844
|
* @brief Retrieve the player SDK version number.
|
|
13848
13845
|
*/
|
|
13849
13846
|
get playerVersion() {
|
|
13850
|
-
return "2.
|
|
13847
|
+
return "2.6.0-rc.0";
|
|
13851
13848
|
}
|
|
13852
13849
|
/** {zh}
|
|
13853
13850
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -18983,8 +18980,6 @@ var __publicField = (obj, key, value) => {
|
|
|
18983
18980
|
}
|
|
18984
18981
|
if (codec === "unknown" ? isMseSupported$1(Codec.H264) : isMseSupported$1(codec)) {
|
|
18985
18982
|
mseStrategy = createFlvMseStrategy(options);
|
|
18986
|
-
} else if (isMMSSupported$1()) {
|
|
18987
|
-
mseStrategy = createFlvMssStrategy(options);
|
|
18988
18983
|
}
|
|
18989
18984
|
if (!mseStrategy && !softStrategy) {
|
|
18990
18985
|
return {};
|
|
@@ -19037,38 +19032,24 @@ var __publicField = (obj, key, value) => {
|
|
|
19037
19032
|
plugins: (mseModule == null ? void 0 : mseModule.HlsPlugin) ? [mseModule.HlsPlugin] : []
|
|
19038
19033
|
};
|
|
19039
19034
|
};
|
|
19040
|
-
const
|
|
19035
|
+
const createFlvMseStrategy = (options) => {
|
|
19041
19036
|
var _a;
|
|
19042
19037
|
return {
|
|
19043
|
-
|
|
19044
|
-
|
|
19038
|
+
options: {
|
|
19039
|
+
flv: {
|
|
19040
|
+
retryCount: 0,
|
|
19041
|
+
disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0,
|
|
19042
|
+
...(options == null ? void 0 : options.flv) ?? {}
|
|
19043
|
+
}
|
|
19044
|
+
},
|
|
19045
|
+
module: DynamicModule.PluginFlv
|
|
19045
19046
|
};
|
|
19046
19047
|
};
|
|
19047
|
-
const createFlvMseStrategy = (options) => ({
|
|
19048
|
-
options: {
|
|
19049
|
-
flv: {
|
|
19050
|
-
...getDefaultFlvOptions(options),
|
|
19051
|
-
...(options == null ? void 0 : options.flv) ?? {}
|
|
19052
|
-
}
|
|
19053
|
-
},
|
|
19054
|
-
module: DynamicModule.PluginFlv
|
|
19055
|
-
});
|
|
19056
|
-
const createFlvMssStrategy = (options) => ({
|
|
19057
|
-
options: {
|
|
19058
|
-
flv: {
|
|
19059
|
-
preferMMS: true,
|
|
19060
|
-
...getDefaultFlvOptions(options),
|
|
19061
|
-
...(options == null ? void 0 : options.flv) ?? {}
|
|
19062
|
-
}
|
|
19063
|
-
},
|
|
19064
|
-
module: DynamicModule.PluginFlv
|
|
19065
|
-
});
|
|
19066
19048
|
const createHlsMseStrategy = (options) => ({
|
|
19067
19049
|
options: {
|
|
19068
19050
|
hls: {
|
|
19069
19051
|
retryCount: 0,
|
|
19070
19052
|
pollRetryCount: 0,
|
|
19071
|
-
allowedStreamTrackChange: false,
|
|
19072
19053
|
...(options == null ? void 0 : options.hls) ?? {}
|
|
19073
19054
|
}
|
|
19074
19055
|
},
|
|
@@ -22127,10 +22108,10 @@ var __publicField = (obj, key, value) => {
|
|
|
22127
22108
|
user_id: this._userId,
|
|
22128
22109
|
device_id: this._deviceId,
|
|
22129
22110
|
ext: {
|
|
22130
|
-
veplayer_version: "2.
|
|
22131
|
-
flv_version: "3.0.21-rc.
|
|
22132
|
-
hls_version: "3.0.21-rc.
|
|
22133
|
-
rts_version: "0.2.1-alpha.
|
|
22111
|
+
veplayer_version: "2.6.0-rc.0",
|
|
22112
|
+
flv_version: "3.0.21-rc.3",
|
|
22113
|
+
hls_version: "3.0.21-rc.3",
|
|
22114
|
+
rts_version: "0.2.1-alpha.0"
|
|
22134
22115
|
}
|
|
22135
22116
|
});
|
|
22136
22117
|
}
|
|
@@ -22723,9 +22704,6 @@ var __publicField = (obj, key, value) => {
|
|
|
22723
22704
|
}
|
|
22724
22705
|
return player;
|
|
22725
22706
|
}
|
|
22726
|
-
function isFLVSupported() {
|
|
22727
|
-
return isMseSupported$1() || isMMSSupported$1();
|
|
22728
|
-
}
|
|
22729
22707
|
var live = /* @__PURE__ */ Object.freeze({
|
|
22730
22708
|
__proto__: null,
|
|
22731
22709
|
ErrorCode,
|
|
@@ -22734,7 +22712,6 @@ var __publicField = (obj, key, value) => {
|
|
|
22734
22712
|
setModuleSystem("umd");
|
|
22735
22713
|
const isMseSupported = util.isMseSupported;
|
|
22736
22714
|
const isSoftDecodeSupported = util.isSoftDecodeSupported;
|
|
22737
|
-
const isMMSSupported = util.isMMSSupported;
|
|
22738
22715
|
if (typeof VePlayer.registerPlugin !== "undefined") {
|
|
22739
22716
|
VePlayer.registerPlugin(DynamicModule.BizLive, {
|
|
22740
22717
|
createLivePlayer
|
|
@@ -22756,8 +22733,6 @@ var __publicField = (obj, key, value) => {
|
|
|
22756
22733
|
exports2.Sniffer = sniffer$1;
|
|
22757
22734
|
exports2.ZH_CN = ZH_CN$1;
|
|
22758
22735
|
exports2.createLivePlayer = createLivePlayer;
|
|
22759
|
-
exports2.isFLVSupported = isFLVSupported;
|
|
22760
|
-
exports2.isMMSSupported = isMMSSupported;
|
|
22761
22736
|
exports2.isMseSupported = isMseSupported;
|
|
22762
22737
|
exports2.isRTMSupportCodec = isRTMSupportCodec;
|
|
22763
22738
|
exports2.isRTMSupported = isRTMSupported;
|