@byteplus/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 +35 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +6 -2
- package/esm/veplayer.development.js +38 -4
- package/esm/veplayer.live.d.ts +6 -2
- package/esm/veplayer.live.development.js +38 -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 +35 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +6 -2
- package/umd/veplayer.development.js +38 -4
- package/umd/veplayer.live.d.ts +6 -2
- package/umd/veplayer.live.development.js +38 -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,16 @@ 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,
|
|
62063
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62064
|
+
LicenseFeature.ABR,
|
|
62065
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62066
|
+
]
|
|
62067
|
+
);
|
|
62044
62068
|
class LicenseEventEmitter {
|
|
62045
62069
|
constructor() {
|
|
62046
62070
|
__publicField(this, "player");
|
|
@@ -62111,6 +62135,9 @@ class LiveLicenseManager {
|
|
|
62111
62135
|
// 验证 License 是否支持该 feature
|
|
62112
62136
|
checkLiveLicenseFeature(feature) {
|
|
62113
62137
|
var _a, _b;
|
|
62138
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62139
|
+
return;
|
|
62140
|
+
}
|
|
62114
62141
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
62115
62142
|
if (!result) {
|
|
62116
62143
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|
|
@@ -62638,7 +62665,7 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62638
62665
|
return LiveUrlType.Rtm;
|
|
62639
62666
|
}
|
|
62640
62667
|
get defaultFallbackStrategy() {
|
|
62641
|
-
return { [FallbackKind.Error]: {
|
|
62668
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62642
62669
|
}
|
|
62643
62670
|
static canGenerateOtherProtocol(options) {
|
|
62644
62671
|
var _a;
|
|
@@ -62681,10 +62708,17 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62681
62708
|
i18n,
|
|
62682
62709
|
enableSelector
|
|
62683
62710
|
}) {
|
|
62711
|
+
var _a;
|
|
62684
62712
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62685
62713
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62686
62714
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62687
62715
|
}
|
|
62716
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62717
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62718
|
+
);
|
|
62719
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62720
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62721
|
+
}
|
|
62688
62722
|
this.protocolStrategy = await getRtmStrategy(
|
|
62689
62723
|
enableSelector ? {
|
|
62690
62724
|
options,
|
|
@@ -74147,7 +74181,7 @@ async function prepare(options) {
|
|
|
74147
74181
|
}
|
|
74148
74182
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74149
74183
|
...options,
|
|
74150
|
-
playerVersion: "2.11.
|
|
74184
|
+
playerVersion: "2.11.2",
|
|
74151
74185
|
type: "LIVE"
|
|
74152
74186
|
}));
|
|
74153
74187
|
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,16 @@ 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,
|
|
62069
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62070
|
+
LicenseFeature.ABR,
|
|
62071
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62072
|
+
]
|
|
62073
|
+
);
|
|
62050
62074
|
class LicenseEventEmitter {
|
|
62051
62075
|
constructor() {
|
|
62052
62076
|
__publicField(this, "player");
|
|
@@ -62117,6 +62141,9 @@ class LiveLicenseManager {
|
|
|
62117
62141
|
// 验证 License 是否支持该 feature
|
|
62118
62142
|
checkLiveLicenseFeature(feature) {
|
|
62119
62143
|
var _a, _b;
|
|
62144
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62145
|
+
return;
|
|
62146
|
+
}
|
|
62120
62147
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
62121
62148
|
if (!result) {
|
|
62122
62149
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|
|
@@ -62644,7 +62671,7 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62644
62671
|
return LiveUrlType.Rtm;
|
|
62645
62672
|
}
|
|
62646
62673
|
get defaultFallbackStrategy() {
|
|
62647
|
-
return { [FallbackKind.Error]: {
|
|
62674
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62648
62675
|
}
|
|
62649
62676
|
static canGenerateOtherProtocol(options) {
|
|
62650
62677
|
var _a;
|
|
@@ -62687,10 +62714,17 @@ class RtmProtocol extends BaseProtocol {
|
|
|
62687
62714
|
i18n,
|
|
62688
62715
|
enableSelector
|
|
62689
62716
|
}) {
|
|
62717
|
+
var _a;
|
|
62690
62718
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62691
62719
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62692
62720
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62693
62721
|
}
|
|
62722
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62723
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62724
|
+
);
|
|
62725
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62726
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62727
|
+
}
|
|
62694
62728
|
this.protocolStrategy = await getRtmStrategy(
|
|
62695
62729
|
enableSelector ? {
|
|
62696
62730
|
options,
|
|
@@ -74153,7 +74187,7 @@ async function prepare(options) {
|
|
|
74153
74187
|
}
|
|
74154
74188
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74155
74189
|
...options,
|
|
74156
|
-
playerVersion: "2.11.
|
|
74190
|
+
playerVersion: "2.11.2",
|
|
74157
74191
|
type: "LIVE"
|
|
74158
74192
|
}));
|
|
74159
74193
|
return liveVeStrategy.veStrategyManager;
|