@volcengine/veplayer 2.11.1 → 2.11.2
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 +34 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +6 -2
- package/esm/veplayer.development.js +37 -4
- package/esm/veplayer.live.d.ts +6 -2
- package/esm/veplayer.live.development.js +37 -4
- 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 +34 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +6 -2
- package/umd/veplayer.development.js +37 -4
- package/umd/veplayer.live.d.ts +6 -2
- package/umd/veplayer.live.development.js +37 -4
- 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 +6 -2
- package/veplayer.live.d.ts +6 -2
package/esm/veplayer.d.ts
CHANGED
|
@@ -5819,6 +5819,7 @@ declare enum LicenseFeature {
|
|
|
5819
5819
|
H265 = "h265",
|
|
5820
5820
|
PRELOAD = "preload",
|
|
5821
5821
|
RTM = "rtm",
|
|
5822
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
5822
5823
|
ABR = "abr",
|
|
5823
5824
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
5824
5825
|
}
|
|
@@ -6313,7 +6314,8 @@ type ErrorCode = ValueOf<typeof ErrorCode>;
|
|
|
6313
6314
|
declare enum LiveLicenseFeature {
|
|
6314
6315
|
RTM = "rtm",
|
|
6315
6316
|
ABR = "abr",
|
|
6316
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
6317
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
6318
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
6317
6319
|
}
|
|
6318
6320
|
/** {zh}
|
|
6319
6321
|
* @list option
|
|
@@ -11034,6 +11036,7 @@ declare namespace live {
|
|
|
11034
11036
|
H265 = "h265",
|
|
11035
11037
|
PRELOAD = "preload",
|
|
11036
11038
|
RTM = "rtm",
|
|
11039
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
11037
11040
|
ABR = "abr",
|
|
11038
11041
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11039
11042
|
}
|
|
@@ -11585,7 +11588,8 @@ declare namespace live {
|
|
|
11585
11588
|
enum LiveLicenseFeature {
|
|
11586
11589
|
RTM = "rtm",
|
|
11587
11590
|
ABR = "abr",
|
|
11588
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11591
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
11592
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
11589
11593
|
}
|
|
11590
11594
|
/** {zh}
|
|
11591
11595
|
* @list option
|
|
@@ -14616,7 +14616,7 @@ class VePlayerBase {
|
|
|
14616
14616
|
* @brief Retrieve the player SDK version number.
|
|
14617
14617
|
*/
|
|
14618
14618
|
get playerVersion() {
|
|
14619
|
-
return "2.11.
|
|
14619
|
+
return "2.11.2";
|
|
14620
14620
|
}
|
|
14621
14621
|
/** {zh}
|
|
14622
14622
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -31060,6 +31060,7 @@ var LicenseFeature = /* @__PURE__ */ ((LicenseFeature2) => {
|
|
|
31060
31060
|
LicenseFeature2["H265"] = "h265";
|
|
31061
31061
|
LicenseFeature2["PRELOAD"] = "preload";
|
|
31062
31062
|
LicenseFeature2["RTM"] = "rtm";
|
|
31063
|
+
LicenseFeature2["RTM_ADAPTIVE_BUFFER"] = "rtmAdaptiveBuffer";
|
|
31063
31064
|
LicenseFeature2["ABR"] = "abr";
|
|
31064
31065
|
LicenseFeature2["FLV_LOW_LATENCY"] = "flvLowLatency";
|
|
31065
31066
|
return LicenseFeature2;
|
|
@@ -56475,7 +56476,7 @@ let Logger$1 = class Logger2 extends Plugin {
|
|
|
56475
56476
|
device_id: deviceId,
|
|
56476
56477
|
error_report_stop: true,
|
|
56477
56478
|
ext: {
|
|
56478
|
-
veplayer_version: "2.11.
|
|
56479
|
+
veplayer_version: "2.11.2",
|
|
56479
56480
|
flv_version: "3.0.23-rc.6",
|
|
56480
56481
|
hls_version: "3.0.21-rc.21",
|
|
56481
56482
|
rts_version: "0.2.1-alpha.57"
|
|
@@ -62010,6 +62011,19 @@ const LicenseWarningMap = {
|
|
|
62010
62011
|
code: ErrorCode.LICENSE_EXPIRED_RTM
|
|
62011
62012
|
}
|
|
62012
62013
|
},
|
|
62014
|
+
[
|
|
62015
|
+
"rtmAdaptiveBuffer"
|
|
62016
|
+
/* RTM_ADAPTIVE_BUFFER */
|
|
62017
|
+
]: {
|
|
62018
|
+
BASE_LICENSE_NOT_SUPPORT: {
|
|
62019
|
+
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
62020
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62021
|
+
},
|
|
62022
|
+
LICENSE_EXPIRED: {
|
|
62023
|
+
type: "LICENSE_EXPIRED",
|
|
62024
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62025
|
+
}
|
|
62026
|
+
},
|
|
62013
62027
|
[LicenseFeature.PRELOAD]: {
|
|
62014
62028
|
BASE_LICENSE_NOT_SUPPORT: {
|
|
62015
62029
|
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
@@ -62041,6 +62055,15 @@ const LicenseWarningMap = {
|
|
|
62041
62055
|
}
|
|
62042
62056
|
}
|
|
62043
62057
|
};
|
|
62058
|
+
const premiumFeatureList = (
|
|
62059
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62060
|
+
// @ts-ignore
|
|
62061
|
+
[
|
|
62062
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62063
|
+
LicenseFeature.ABR,
|
|
62064
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62065
|
+
]
|
|
62066
|
+
);
|
|
62044
62067
|
class LicenseEventEmitter {
|
|
62045
62068
|
constructor() {
|
|
62046
62069
|
__publicField(this, "player");
|
|
@@ -62111,6 +62134,9 @@ class LiveLicenseManager {
|
|
|
62111
62134
|
// 验证 License 是否支持该 feature
|
|
62112
62135
|
checkLiveLicenseFeature(feature) {
|
|
62113
62136
|
var _a, _b;
|
|
62137
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62138
|
+
return;
|
|
62139
|
+
}
|
|
62114
62140
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
62115
62141
|
if (!result) {
|
|
62116
62142
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|
|
@@ -62638,7 +62664,7 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62638
62664
|
return LiveUrlType.Rtm;
|
|
62639
62665
|
}
|
|
62640
62666
|
get defaultFallbackStrategy() {
|
|
62641
|
-
return { [FallbackKind.Error]: {
|
|
62667
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62642
62668
|
}
|
|
62643
62669
|
static canGenerateOtherProtocol(options) {
|
|
62644
62670
|
var _a;
|
|
@@ -62681,10 +62707,17 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62681
62707
|
i18n,
|
|
62682
62708
|
enableSelector
|
|
62683
62709
|
}) {
|
|
62710
|
+
var _a;
|
|
62684
62711
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62685
62712
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62686
62713
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62687
62714
|
}
|
|
62715
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62716
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62717
|
+
);
|
|
62718
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62719
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62720
|
+
}
|
|
62688
62721
|
this.protocolStrategy = await getRtmStrategy(
|
|
62689
62722
|
enableSelector ? {
|
|
62690
62723
|
options,
|
|
@@ -74147,7 +74180,7 @@ async function prepare(options) {
|
|
|
74147
74180
|
}
|
|
74148
74181
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74149
74182
|
...options,
|
|
74150
|
-
playerVersion: "2.11.
|
|
74183
|
+
playerVersion: "2.11.2",
|
|
74151
74184
|
type: "LIVE"
|
|
74152
74185
|
}));
|
|
74153
74186
|
return liveVeStrategy.veStrategyManager;
|
package/esm/veplayer.live.d.ts
CHANGED
|
@@ -5819,6 +5819,7 @@ declare enum LicenseFeature {
|
|
|
5819
5819
|
H265 = "h265",
|
|
5820
5820
|
PRELOAD = "preload",
|
|
5821
5821
|
RTM = "rtm",
|
|
5822
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
5822
5823
|
ABR = "abr",
|
|
5823
5824
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
5824
5825
|
}
|
|
@@ -6313,7 +6314,8 @@ type ErrorCode = ValueOf<typeof ErrorCode>;
|
|
|
6313
6314
|
declare enum LiveLicenseFeature {
|
|
6314
6315
|
RTM = "rtm",
|
|
6315
6316
|
ABR = "abr",
|
|
6316
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
6317
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
6318
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
6317
6319
|
}
|
|
6318
6320
|
/** {zh}
|
|
6319
6321
|
* @list option
|
|
@@ -11034,6 +11036,7 @@ declare namespace live {
|
|
|
11034
11036
|
H265 = "h265",
|
|
11035
11037
|
PRELOAD = "preload",
|
|
11036
11038
|
RTM = "rtm",
|
|
11039
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
11037
11040
|
ABR = "abr",
|
|
11038
11041
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11039
11042
|
}
|
|
@@ -11585,7 +11588,8 @@ declare namespace live {
|
|
|
11585
11588
|
enum LiveLicenseFeature {
|
|
11586
11589
|
RTM = "rtm",
|
|
11587
11590
|
ABR = "abr",
|
|
11588
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11591
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
11592
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
11589
11593
|
}
|
|
11590
11594
|
/** {zh}
|
|
11591
11595
|
* @list option
|
|
@@ -14616,7 +14616,7 @@ class VePlayerBase {
|
|
|
14616
14616
|
* @brief Retrieve the player SDK version number.
|
|
14617
14617
|
*/
|
|
14618
14618
|
get playerVersion() {
|
|
14619
|
-
return "2.11.
|
|
14619
|
+
return "2.11.2";
|
|
14620
14620
|
}
|
|
14621
14621
|
/** {zh}
|
|
14622
14622
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -31060,6 +31060,7 @@ var LicenseFeature = /* @__PURE__ */ ((LicenseFeature2) => {
|
|
|
31060
31060
|
LicenseFeature2["H265"] = "h265";
|
|
31061
31061
|
LicenseFeature2["PRELOAD"] = "preload";
|
|
31062
31062
|
LicenseFeature2["RTM"] = "rtm";
|
|
31063
|
+
LicenseFeature2["RTM_ADAPTIVE_BUFFER"] = "rtmAdaptiveBuffer";
|
|
31063
31064
|
LicenseFeature2["ABR"] = "abr";
|
|
31064
31065
|
LicenseFeature2["FLV_LOW_LATENCY"] = "flvLowLatency";
|
|
31065
31066
|
return LicenseFeature2;
|
|
@@ -56475,7 +56476,7 @@ let Logger$1 = class Logger2 extends Plugin {
|
|
|
56475
56476
|
device_id: deviceId,
|
|
56476
56477
|
error_report_stop: true,
|
|
56477
56478
|
ext: {
|
|
56478
|
-
veplayer_version: "2.11.
|
|
56479
|
+
veplayer_version: "2.11.2",
|
|
56479
56480
|
flv_version: "3.0.23-rc.6",
|
|
56480
56481
|
hls_version: "3.0.21-rc.21",
|
|
56481
56482
|
rts_version: "0.2.1-alpha.57"
|
|
@@ -62016,6 +62017,19 @@ const LicenseWarningMap = {
|
|
|
62016
62017
|
code: ErrorCode.LICENSE_EXPIRED_RTM
|
|
62017
62018
|
}
|
|
62018
62019
|
},
|
|
62020
|
+
[
|
|
62021
|
+
"rtmAdaptiveBuffer"
|
|
62022
|
+
/* RTM_ADAPTIVE_BUFFER */
|
|
62023
|
+
]: {
|
|
62024
|
+
BASE_LICENSE_NOT_SUPPORT: {
|
|
62025
|
+
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
62026
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62027
|
+
},
|
|
62028
|
+
LICENSE_EXPIRED: {
|
|
62029
|
+
type: "LICENSE_EXPIRED",
|
|
62030
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62031
|
+
}
|
|
62032
|
+
},
|
|
62019
62033
|
[LicenseFeature.PRELOAD]: {
|
|
62020
62034
|
BASE_LICENSE_NOT_SUPPORT: {
|
|
62021
62035
|
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
@@ -62047,6 +62061,15 @@ const LicenseWarningMap = {
|
|
|
62047
62061
|
}
|
|
62048
62062
|
}
|
|
62049
62063
|
};
|
|
62064
|
+
const premiumFeatureList = (
|
|
62065
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62066
|
+
// @ts-ignore
|
|
62067
|
+
[
|
|
62068
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62069
|
+
LicenseFeature.ABR,
|
|
62070
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62071
|
+
]
|
|
62072
|
+
);
|
|
62050
62073
|
class LicenseEventEmitter {
|
|
62051
62074
|
constructor() {
|
|
62052
62075
|
__publicField(this, "player");
|
|
@@ -62117,6 +62140,9 @@ class LiveLicenseManager {
|
|
|
62117
62140
|
// 验证 License 是否支持该 feature
|
|
62118
62141
|
checkLiveLicenseFeature(feature) {
|
|
62119
62142
|
var _a, _b;
|
|
62143
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62144
|
+
return;
|
|
62145
|
+
}
|
|
62120
62146
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
62121
62147
|
if (!result) {
|
|
62122
62148
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|
|
@@ -62644,7 +62670,7 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62644
62670
|
return LiveUrlType.Rtm;
|
|
62645
62671
|
}
|
|
62646
62672
|
get defaultFallbackStrategy() {
|
|
62647
|
-
return { [FallbackKind.Error]: {
|
|
62673
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62648
62674
|
}
|
|
62649
62675
|
static canGenerateOtherProtocol(options) {
|
|
62650
62676
|
var _a;
|
|
@@ -62687,10 +62713,17 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62687
62713
|
i18n,
|
|
62688
62714
|
enableSelector
|
|
62689
62715
|
}) {
|
|
62716
|
+
var _a;
|
|
62690
62717
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62691
62718
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62692
62719
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62693
62720
|
}
|
|
62721
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62722
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62723
|
+
);
|
|
62724
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62725
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62726
|
+
}
|
|
62694
62727
|
this.protocolStrategy = await getRtmStrategy(
|
|
62695
62728
|
enableSelector ? {
|
|
62696
62729
|
options,
|
|
@@ -74153,7 +74186,7 @@ async function prepare(options) {
|
|
|
74153
74186
|
}
|
|
74154
74187
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74155
74188
|
...options,
|
|
74156
|
-
playerVersion: "2.11.
|
|
74189
|
+
playerVersion: "2.11.2",
|
|
74157
74190
|
type: "LIVE"
|
|
74158
74191
|
}));
|
|
74159
74192
|
return liveVeStrategy.veStrategyManager;
|