@volcengine/veplayer 2.4.1-rc.0 → 2.4.2-rc.1
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/veplayer.biz.live.development.js +75 -87
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +10 -0
- package/esm/veplayer.development.js +33 -45
- package/esm/veplayer.live.d.ts +10 -0
- package/esm/veplayer.live.development.js +33 -45
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +1 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +75 -87
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +10 -0
- package/umd/veplayer.development.js +33 -45
- package/umd/veplayer.live.d.ts +10 -0
- package/umd/veplayer.live.development.js +33 -45
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +1 -1
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +10 -0
- package/veplayer.live.d.ts +10 -0
package/umd/veplayer.d.ts
CHANGED
|
@@ -5579,6 +5579,11 @@ interface Rtm {
|
|
|
5579
5579
|
* @default 1000
|
|
5580
5580
|
*/
|
|
5581
5581
|
networkEvaluateInterval?: number;
|
|
5582
|
+
/** {zh}
|
|
5583
|
+
* @brief 暂停断流,播放无缝重新拉流
|
|
5584
|
+
* @default false
|
|
5585
|
+
*/
|
|
5586
|
+
seamlesslyReload?: boolean;
|
|
5582
5587
|
}
|
|
5583
5588
|
/** {zh}
|
|
5584
5589
|
* @list option
|
|
@@ -10389,6 +10394,11 @@ declare namespace live {
|
|
|
10389
10394
|
* @default 1000
|
|
10390
10395
|
*/
|
|
10391
10396
|
networkEvaluateInterval?: number;
|
|
10397
|
+
/** {zh}
|
|
10398
|
+
* @brief 暂停断流,播放无缝重新拉流
|
|
10399
|
+
* @default false
|
|
10400
|
+
*/
|
|
10401
|
+
seamlesslyReload?: boolean;
|
|
10392
10402
|
}
|
|
10393
10403
|
/** {zh}
|
|
10394
10404
|
* @list option
|
|
@@ -13746,7 +13746,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13746
13746
|
* @returns
|
|
13747
13747
|
*/
|
|
13748
13748
|
get playerVersion() {
|
|
13749
|
-
return "2.4.
|
|
13749
|
+
return "2.4.2-rc.1";
|
|
13750
13750
|
}
|
|
13751
13751
|
/** {zh}
|
|
13752
13752
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -19067,29 +19067,6 @@ var __publicField = (obj, key, value) => {
|
|
|
19067
19067
|
return RtmPlugin.isSupportedH264();
|
|
19068
19068
|
return false;
|
|
19069
19069
|
}
|
|
19070
|
-
const getAbrStrategy = async (options) => {
|
|
19071
|
-
var _a, _b;
|
|
19072
|
-
const streamType = options.url && getStreamType(options.url);
|
|
19073
|
-
if (streamType === "rtm") {
|
|
19074
|
-
return {};
|
|
19075
|
-
}
|
|
19076
|
-
const abrOptions = streamType === "flv" ? (_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.abr : (_b = options == null ? void 0 : options.hls) == null ? void 0 : _b.abr;
|
|
19077
|
-
if (!abrOptions) {
|
|
19078
|
-
return {};
|
|
19079
|
-
}
|
|
19080
|
-
const abrPlugin = await load(DynamicModule.PluginAbr).catch(() => void 0);
|
|
19081
|
-
return {
|
|
19082
|
-
options: {
|
|
19083
|
-
[streamType === "flv" ? "abr" : "hlsabr"]: {
|
|
19084
|
-
...abrOptions,
|
|
19085
|
-
open: abrOptions.enable ?? true
|
|
19086
|
-
}
|
|
19087
|
-
},
|
|
19088
|
-
plugins: [
|
|
19089
|
-
streamType === "flv" ? abrPlugin == null ? void 0 : abrPlugin.AbrPlugin : abrPlugin == null ? void 0 : abrPlugin.HlsAbrPlugin
|
|
19090
|
-
]
|
|
19091
|
-
};
|
|
19092
|
-
};
|
|
19093
19070
|
const rtmStrategy = {
|
|
19094
19071
|
options: {},
|
|
19095
19072
|
module: DynamicModule.PluginRtm
|
|
@@ -19104,8 +19081,6 @@ var __publicField = (obj, key, value) => {
|
|
|
19104
19081
|
const getRtmStrategy = async (options, player) => {
|
|
19105
19082
|
var _a;
|
|
19106
19083
|
let backupStrategy;
|
|
19107
|
-
let backupOptions = {};
|
|
19108
|
-
let backupModule = [];
|
|
19109
19084
|
const { url } = options;
|
|
19110
19085
|
const {
|
|
19111
19086
|
fallbackUrl,
|
|
@@ -19120,7 +19095,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19120
19095
|
} else if (backupType === "hls" && (sniffer$1.device !== "mobile" || ((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE)) && util.isMseSupported(Codec.H264)) {
|
|
19121
19096
|
backupStrategy = createHlsMseStrategy(options);
|
|
19122
19097
|
}
|
|
19123
|
-
const [rtmCdn, backupCdn
|
|
19098
|
+
const [rtmCdn, backupCdn] = await Promise.all([
|
|
19124
19099
|
load(rtmStrategy.module).then((module2) => {
|
|
19125
19100
|
return module2.RtmPlugin;
|
|
19126
19101
|
}).catch(() => void 0),
|
|
@@ -19130,18 +19105,8 @@ var __publicField = (obj, key, value) => {
|
|
|
19130
19105
|
} else if ((backupStrategy == null ? void 0 : backupStrategy.module) === DynamicModule.PluginHls) {
|
|
19131
19106
|
return module2.HlsPlugin;
|
|
19132
19107
|
}
|
|
19133
|
-
}).catch(() => void 0)
|
|
19134
|
-
getAbrStrategy({ ...options, url: actualFallbackUrl }).catch(
|
|
19135
|
-
() => void 0
|
|
19136
|
-
)
|
|
19108
|
+
}).catch(() => void 0)
|
|
19137
19109
|
]);
|
|
19138
|
-
if (backupType) {
|
|
19139
|
-
backupOptions = {
|
|
19140
|
-
...backupStrategy == null ? void 0 : backupStrategy.options,
|
|
19141
|
-
...backupAbr == null ? void 0 : backupAbr.options
|
|
19142
|
-
};
|
|
19143
|
-
backupModule = [backupCdn, ...(backupAbr == null ? void 0 : backupAbr.plugins) ?? []];
|
|
19144
|
-
}
|
|
19145
19110
|
const [RTMSupported, RTMSupportCodec] = await Promise.all([
|
|
19146
19111
|
isRTMSupported(),
|
|
19147
19112
|
isRTMSupportCodec()
|
|
@@ -19159,7 +19124,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19159
19124
|
}
|
|
19160
19125
|
return {
|
|
19161
19126
|
options: {
|
|
19162
|
-
...
|
|
19127
|
+
...(backupStrategy == null ? void 0 : backupStrategy.options) || {},
|
|
19163
19128
|
url: actualFallbackUrl,
|
|
19164
19129
|
_RTMdegrade: {
|
|
19165
19130
|
_originRtmUrl: url,
|
|
@@ -19167,19 +19132,19 @@ var __publicField = (obj, key, value) => {
|
|
|
19167
19132
|
_isRTMSupportCodec: RTMSupportCodec
|
|
19168
19133
|
}
|
|
19169
19134
|
},
|
|
19170
|
-
plugins:
|
|
19135
|
+
plugins: backupCdn ? [backupCdn] : []
|
|
19171
19136
|
};
|
|
19172
19137
|
}
|
|
19173
19138
|
return {
|
|
19174
19139
|
options: {
|
|
19175
|
-
...
|
|
19140
|
+
...(backupStrategy == null ? void 0 : backupStrategy.options) || {},
|
|
19176
19141
|
url: enableRTMAutoTranscode ? util.appendSearchParams(url, { enableRTMAutoTranscode: "true" }) : void 0,
|
|
19177
19142
|
_RTMdegrade: void 0,
|
|
19178
19143
|
rts: {
|
|
19179
19144
|
retryCount: 0,
|
|
19180
19145
|
...ret,
|
|
19181
19146
|
backupURL: actualFallbackUrl,
|
|
19182
|
-
backupConstruct:
|
|
19147
|
+
backupConstruct: backupCdn
|
|
19183
19148
|
}
|
|
19184
19149
|
},
|
|
19185
19150
|
plugins: rtmCdn ? [rtmCdn] : []
|
|
@@ -22033,10 +21998,10 @@ var __publicField = (obj, key, value) => {
|
|
|
22033
21998
|
user_id: this._userId,
|
|
22034
21999
|
device_id: this._deviceId,
|
|
22035
22000
|
ext: {
|
|
22036
|
-
veplayer_version: "2.4.
|
|
22037
|
-
flv_version: "3.0.19-rc.
|
|
22001
|
+
veplayer_version: "2.4.2-rc.1",
|
|
22002
|
+
flv_version: "3.0.19-rc.0",
|
|
22038
22003
|
hls_version: "3.0.19-rc.0",
|
|
22039
|
-
rts_version: "0.2.1-alpha.
|
|
22004
|
+
rts_version: "0.2.1-alpha.4"
|
|
22040
22005
|
}
|
|
22041
22006
|
});
|
|
22042
22007
|
}
|
|
@@ -22330,6 +22295,29 @@ var __publicField = (obj, key, value) => {
|
|
|
22330
22295
|
}
|
|
22331
22296
|
return {};
|
|
22332
22297
|
};
|
|
22298
|
+
const getAbrStrategy = async (options) => {
|
|
22299
|
+
var _a, _b;
|
|
22300
|
+
const streamType = options.url && getStreamType(options.url);
|
|
22301
|
+
if (streamType === "rtm") {
|
|
22302
|
+
return {};
|
|
22303
|
+
}
|
|
22304
|
+
const abrOptions = streamType === "flv" ? (_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.abr : (_b = options == null ? void 0 : options.hls) == null ? void 0 : _b.abr;
|
|
22305
|
+
if (!abrOptions) {
|
|
22306
|
+
return {};
|
|
22307
|
+
}
|
|
22308
|
+
const abrPlugin = await load(DynamicModule.PluginAbr).catch(() => void 0);
|
|
22309
|
+
return {
|
|
22310
|
+
options: {
|
|
22311
|
+
[streamType === "flv" ? "abr" : "hlsabr"]: {
|
|
22312
|
+
...abrOptions,
|
|
22313
|
+
open: abrOptions.enable ?? true
|
|
22314
|
+
}
|
|
22315
|
+
},
|
|
22316
|
+
plugins: [
|
|
22317
|
+
streamType === "flv" ? abrPlugin == null ? void 0 : abrPlugin.AbrPlugin : abrPlugin == null ? void 0 : abrPlugin.HlsAbrPlugin
|
|
22318
|
+
]
|
|
22319
|
+
};
|
|
22320
|
+
};
|
|
22333
22321
|
VeI18n.extend([
|
|
22334
22322
|
{
|
|
22335
22323
|
LANG: "zh-cn",
|
package/umd/veplayer.live.d.ts
CHANGED
|
@@ -5579,6 +5579,11 @@ interface Rtm {
|
|
|
5579
5579
|
* @default 1000
|
|
5580
5580
|
*/
|
|
5581
5581
|
networkEvaluateInterval?: number;
|
|
5582
|
+
/** {zh}
|
|
5583
|
+
* @brief 暂停断流,播放无缝重新拉流
|
|
5584
|
+
* @default false
|
|
5585
|
+
*/
|
|
5586
|
+
seamlesslyReload?: boolean;
|
|
5582
5587
|
}
|
|
5583
5588
|
/** {zh}
|
|
5584
5589
|
* @list option
|
|
@@ -10389,6 +10394,11 @@ declare namespace live {
|
|
|
10389
10394
|
* @default 1000
|
|
10390
10395
|
*/
|
|
10391
10396
|
networkEvaluateInterval?: number;
|
|
10397
|
+
/** {zh}
|
|
10398
|
+
* @brief 暂停断流,播放无缝重新拉流
|
|
10399
|
+
* @default false
|
|
10400
|
+
*/
|
|
10401
|
+
seamlesslyReload?: boolean;
|
|
10392
10402
|
}
|
|
10393
10403
|
/** {zh}
|
|
10394
10404
|
* @list option
|
|
@@ -13746,7 +13746,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13746
13746
|
* @returns
|
|
13747
13747
|
*/
|
|
13748
13748
|
get playerVersion() {
|
|
13749
|
-
return "2.4.
|
|
13749
|
+
return "2.4.2-rc.1";
|
|
13750
13750
|
}
|
|
13751
13751
|
/** {zh}
|
|
13752
13752
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -19067,29 +19067,6 @@ var __publicField = (obj, key, value) => {
|
|
|
19067
19067
|
return RtmPlugin.isSupportedH264();
|
|
19068
19068
|
return false;
|
|
19069
19069
|
}
|
|
19070
|
-
const getAbrStrategy = async (options) => {
|
|
19071
|
-
var _a, _b;
|
|
19072
|
-
const streamType = options.url && getStreamType(options.url);
|
|
19073
|
-
if (streamType === "rtm") {
|
|
19074
|
-
return {};
|
|
19075
|
-
}
|
|
19076
|
-
const abrOptions = streamType === "flv" ? (_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.abr : (_b = options == null ? void 0 : options.hls) == null ? void 0 : _b.abr;
|
|
19077
|
-
if (!abrOptions) {
|
|
19078
|
-
return {};
|
|
19079
|
-
}
|
|
19080
|
-
const abrPlugin = await load(DynamicModule.PluginAbr).catch(() => void 0);
|
|
19081
|
-
return {
|
|
19082
|
-
options: {
|
|
19083
|
-
[streamType === "flv" ? "abr" : "hlsabr"]: {
|
|
19084
|
-
...abrOptions,
|
|
19085
|
-
open: abrOptions.enable ?? true
|
|
19086
|
-
}
|
|
19087
|
-
},
|
|
19088
|
-
plugins: [
|
|
19089
|
-
streamType === "flv" ? abrPlugin == null ? void 0 : abrPlugin.AbrPlugin : abrPlugin == null ? void 0 : abrPlugin.HlsAbrPlugin
|
|
19090
|
-
]
|
|
19091
|
-
};
|
|
19092
|
-
};
|
|
19093
19070
|
const rtmStrategy = {
|
|
19094
19071
|
options: {},
|
|
19095
19072
|
module: DynamicModule.PluginRtm
|
|
@@ -19104,8 +19081,6 @@ var __publicField = (obj, key, value) => {
|
|
|
19104
19081
|
const getRtmStrategy = async (options, player) => {
|
|
19105
19082
|
var _a;
|
|
19106
19083
|
let backupStrategy;
|
|
19107
|
-
let backupOptions = {};
|
|
19108
|
-
let backupModule = [];
|
|
19109
19084
|
const { url } = options;
|
|
19110
19085
|
const {
|
|
19111
19086
|
fallbackUrl,
|
|
@@ -19120,7 +19095,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19120
19095
|
} else if (backupType === "hls" && (sniffer$1.device !== "mobile" || ((_a = options == null ? void 0 : options.hls) == null ? void 0 : _a.enableMSE)) && util.isMseSupported(Codec.H264)) {
|
|
19121
19096
|
backupStrategy = createHlsMseStrategy(options);
|
|
19122
19097
|
}
|
|
19123
|
-
const [rtmCdn, backupCdn
|
|
19098
|
+
const [rtmCdn, backupCdn] = await Promise.all([
|
|
19124
19099
|
load(rtmStrategy.module).then((module2) => {
|
|
19125
19100
|
return module2.RtmPlugin;
|
|
19126
19101
|
}).catch(() => void 0),
|
|
@@ -19130,18 +19105,8 @@ var __publicField = (obj, key, value) => {
|
|
|
19130
19105
|
} else if ((backupStrategy == null ? void 0 : backupStrategy.module) === DynamicModule.PluginHls) {
|
|
19131
19106
|
return module2.HlsPlugin;
|
|
19132
19107
|
}
|
|
19133
|
-
}).catch(() => void 0)
|
|
19134
|
-
getAbrStrategy({ ...options, url: actualFallbackUrl }).catch(
|
|
19135
|
-
() => void 0
|
|
19136
|
-
)
|
|
19108
|
+
}).catch(() => void 0)
|
|
19137
19109
|
]);
|
|
19138
|
-
if (backupType) {
|
|
19139
|
-
backupOptions = {
|
|
19140
|
-
...backupStrategy == null ? void 0 : backupStrategy.options,
|
|
19141
|
-
...backupAbr == null ? void 0 : backupAbr.options
|
|
19142
|
-
};
|
|
19143
|
-
backupModule = [backupCdn, ...(backupAbr == null ? void 0 : backupAbr.plugins) ?? []];
|
|
19144
|
-
}
|
|
19145
19110
|
const [RTMSupported, RTMSupportCodec] = await Promise.all([
|
|
19146
19111
|
isRTMSupported(),
|
|
19147
19112
|
isRTMSupportCodec()
|
|
@@ -19159,7 +19124,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19159
19124
|
}
|
|
19160
19125
|
return {
|
|
19161
19126
|
options: {
|
|
19162
|
-
...
|
|
19127
|
+
...(backupStrategy == null ? void 0 : backupStrategy.options) || {},
|
|
19163
19128
|
url: actualFallbackUrl,
|
|
19164
19129
|
_RTMdegrade: {
|
|
19165
19130
|
_originRtmUrl: url,
|
|
@@ -19167,19 +19132,19 @@ var __publicField = (obj, key, value) => {
|
|
|
19167
19132
|
_isRTMSupportCodec: RTMSupportCodec
|
|
19168
19133
|
}
|
|
19169
19134
|
},
|
|
19170
|
-
plugins:
|
|
19135
|
+
plugins: backupCdn ? [backupCdn] : []
|
|
19171
19136
|
};
|
|
19172
19137
|
}
|
|
19173
19138
|
return {
|
|
19174
19139
|
options: {
|
|
19175
|
-
...
|
|
19140
|
+
...(backupStrategy == null ? void 0 : backupStrategy.options) || {},
|
|
19176
19141
|
url: enableRTMAutoTranscode ? util.appendSearchParams(url, { enableRTMAutoTranscode: "true" }) : void 0,
|
|
19177
19142
|
_RTMdegrade: void 0,
|
|
19178
19143
|
rts: {
|
|
19179
19144
|
retryCount: 0,
|
|
19180
19145
|
...ret,
|
|
19181
19146
|
backupURL: actualFallbackUrl,
|
|
19182
|
-
backupConstruct:
|
|
19147
|
+
backupConstruct: backupCdn
|
|
19183
19148
|
}
|
|
19184
19149
|
},
|
|
19185
19150
|
plugins: rtmCdn ? [rtmCdn] : []
|
|
@@ -22033,10 +21998,10 @@ var __publicField = (obj, key, value) => {
|
|
|
22033
21998
|
user_id: this._userId,
|
|
22034
21999
|
device_id: this._deviceId,
|
|
22035
22000
|
ext: {
|
|
22036
|
-
veplayer_version: "2.4.
|
|
22037
|
-
flv_version: "3.0.19-rc.
|
|
22001
|
+
veplayer_version: "2.4.2-rc.1",
|
|
22002
|
+
flv_version: "3.0.19-rc.0",
|
|
22038
22003
|
hls_version: "3.0.19-rc.0",
|
|
22039
|
-
rts_version: "0.2.1-alpha.
|
|
22004
|
+
rts_version: "0.2.1-alpha.4"
|
|
22040
22005
|
}
|
|
22041
22006
|
});
|
|
22042
22007
|
}
|
|
@@ -22330,6 +22295,29 @@ var __publicField = (obj, key, value) => {
|
|
|
22330
22295
|
}
|
|
22331
22296
|
return {};
|
|
22332
22297
|
};
|
|
22298
|
+
const getAbrStrategy = async (options) => {
|
|
22299
|
+
var _a, _b;
|
|
22300
|
+
const streamType = options.url && getStreamType(options.url);
|
|
22301
|
+
if (streamType === "rtm") {
|
|
22302
|
+
return {};
|
|
22303
|
+
}
|
|
22304
|
+
const abrOptions = streamType === "flv" ? (_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.abr : (_b = options == null ? void 0 : options.hls) == null ? void 0 : _b.abr;
|
|
22305
|
+
if (!abrOptions) {
|
|
22306
|
+
return {};
|
|
22307
|
+
}
|
|
22308
|
+
const abrPlugin = await load(DynamicModule.PluginAbr).catch(() => void 0);
|
|
22309
|
+
return {
|
|
22310
|
+
options: {
|
|
22311
|
+
[streamType === "flv" ? "abr" : "hlsabr"]: {
|
|
22312
|
+
...abrOptions,
|
|
22313
|
+
open: abrOptions.enable ?? true
|
|
22314
|
+
}
|
|
22315
|
+
},
|
|
22316
|
+
plugins: [
|
|
22317
|
+
streamType === "flv" ? abrPlugin == null ? void 0 : abrPlugin.AbrPlugin : abrPlugin == null ? void 0 : abrPlugin.HlsAbrPlugin
|
|
22318
|
+
]
|
|
22319
|
+
};
|
|
22320
|
+
};
|
|
22333
22321
|
VeI18n.extend([
|
|
22334
22322
|
{
|
|
22335
22323
|
LANG: "zh-cn",
|