@byteplus/veplayer 2.11.0 → 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 +33 -11
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +6 -8
- package/esm/veplayer.development.js +36 -14
- package/esm/veplayer.live.d.ts +6 -8
- package/esm/veplayer.live.development.js +36 -14
- 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 +33 -11
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +6 -8
- package/umd/veplayer.development.js +36 -14
- package/umd/veplayer.live.d.ts +6 -8
- package/umd/veplayer.live.development.js +36 -14
- 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 -8
- package/veplayer.live.d.ts +6 -8
package/umd/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
|
|
@@ -6347,9 +6349,6 @@ declare class LicenseEventEmitter {
|
|
|
6347
6349
|
start(player: any): void;
|
|
6348
6350
|
}
|
|
6349
6351
|
declare class LiveLicenseManager {
|
|
6350
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6351
|
-
// @ts-ignore
|
|
6352
|
-
enableLiveLicenseCheck: boolean;
|
|
6353
6352
|
licenseSupportModuleList: LicenseFeature[];
|
|
6354
6353
|
licenseStatusResult?: LicenseStatus;
|
|
6355
6354
|
licenseCheckResult?: LicenseEdition;
|
|
@@ -11037,6 +11036,7 @@ declare namespace live {
|
|
|
11037
11036
|
H265 = "h265",
|
|
11038
11037
|
PRELOAD = "preload",
|
|
11039
11038
|
RTM = "rtm",
|
|
11039
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
11040
11040
|
ABR = "abr",
|
|
11041
11041
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11042
11042
|
}
|
|
@@ -11588,7 +11588,8 @@ declare namespace live {
|
|
|
11588
11588
|
enum LiveLicenseFeature {
|
|
11589
11589
|
RTM = "rtm",
|
|
11590
11590
|
ABR = "abr",
|
|
11591
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11591
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
11592
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
11592
11593
|
}
|
|
11593
11594
|
/** {zh}
|
|
11594
11595
|
* @list option
|
|
@@ -11623,9 +11624,6 @@ declare namespace live {
|
|
|
11623
11624
|
start(player: any): void;
|
|
11624
11625
|
}
|
|
11625
11626
|
class LiveLicenseManager {
|
|
11626
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11627
|
-
// @ts-ignore
|
|
11628
|
-
enableLiveLicenseCheck: boolean;
|
|
11629
11627
|
licenseSupportModuleList: LicenseFeature[];
|
|
11630
11628
|
licenseStatusResult?: LicenseStatus;
|
|
11631
11629
|
licenseCheckResult?: LicenseEdition;
|
|
@@ -14620,7 +14620,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14620
14620
|
* @brief Retrieve the player SDK version number.
|
|
14621
14621
|
*/
|
|
14622
14622
|
get playerVersion() {
|
|
14623
|
-
return "2.11.
|
|
14623
|
+
return "2.11.2";
|
|
14624
14624
|
}
|
|
14625
14625
|
/** {zh}
|
|
14626
14626
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -31064,6 +31064,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
31064
31064
|
LicenseFeature2["H265"] = "h265";
|
|
31065
31065
|
LicenseFeature2["PRELOAD"] = "preload";
|
|
31066
31066
|
LicenseFeature2["RTM"] = "rtm";
|
|
31067
|
+
LicenseFeature2["RTM_ADAPTIVE_BUFFER"] = "rtmAdaptiveBuffer";
|
|
31067
31068
|
LicenseFeature2["ABR"] = "abr";
|
|
31068
31069
|
LicenseFeature2["FLV_LOW_LATENCY"] = "flvLowLatency";
|
|
31069
31070
|
return LicenseFeature2;
|
|
@@ -56479,7 +56480,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56479
56480
|
device_id: deviceId,
|
|
56480
56481
|
error_report_stop: true,
|
|
56481
56482
|
ext: {
|
|
56482
|
-
veplayer_version: "2.11.
|
|
56483
|
+
veplayer_version: "2.11.2",
|
|
56483
56484
|
flv_version: "3.0.23-rc.6",
|
|
56484
56485
|
hls_version: "3.0.21-rc.21",
|
|
56485
56486
|
rts_version: "0.2.1-alpha.57"
|
|
@@ -62014,6 +62015,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62014
62015
|
code: ErrorCode.LICENSE_EXPIRED_RTM
|
|
62015
62016
|
}
|
|
62016
62017
|
},
|
|
62018
|
+
[
|
|
62019
|
+
"rtmAdaptiveBuffer"
|
|
62020
|
+
/* RTM_ADAPTIVE_BUFFER */
|
|
62021
|
+
]: {
|
|
62022
|
+
BASE_LICENSE_NOT_SUPPORT: {
|
|
62023
|
+
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
62024
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62025
|
+
},
|
|
62026
|
+
LICENSE_EXPIRED: {
|
|
62027
|
+
type: "LICENSE_EXPIRED",
|
|
62028
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62029
|
+
}
|
|
62030
|
+
},
|
|
62017
62031
|
[LicenseFeature.PRELOAD]: {
|
|
62018
62032
|
BASE_LICENSE_NOT_SUPPORT: {
|
|
62019
62033
|
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
@@ -62045,6 +62059,16 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62045
62059
|
}
|
|
62046
62060
|
}
|
|
62047
62061
|
};
|
|
62062
|
+
const premiumFeatureList = (
|
|
62063
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62064
|
+
// @ts-ignore
|
|
62065
|
+
[
|
|
62066
|
+
LicenseFeature.RTM,
|
|
62067
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62068
|
+
LicenseFeature.ABR,
|
|
62069
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62070
|
+
]
|
|
62071
|
+
);
|
|
62048
62072
|
class LicenseEventEmitter {
|
|
62049
62073
|
constructor() {
|
|
62050
62074
|
__publicField(this, "player");
|
|
@@ -62085,17 +62109,11 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62085
62109
|
}
|
|
62086
62110
|
class LiveLicenseManager {
|
|
62087
62111
|
constructor() {
|
|
62088
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62089
|
-
// @ts-ignore
|
|
62090
|
-
__publicField(this, "enableLiveLicenseCheck", true);
|
|
62091
62112
|
__publicField(this, "licenseSupportModuleList", []);
|
|
62092
62113
|
__publicField(this, "licenseStatusResult");
|
|
62093
62114
|
__publicField(this, "licenseCheckResult");
|
|
62094
62115
|
}
|
|
62095
62116
|
async create() {
|
|
62096
|
-
if (!this.enableLiveLicenseCheck) {
|
|
62097
|
-
return;
|
|
62098
|
-
}
|
|
62099
62117
|
const [license, featureList] = await Promise.all([
|
|
62100
62118
|
licenseManager.checkLicense(),
|
|
62101
62119
|
licenseManager.checkModuleList()
|
|
@@ -62109,9 +62127,6 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62109
62127
|
}
|
|
62110
62128
|
// 获取 License Fatal 报错信息,License 有问题或者 Domain 不匹配
|
|
62111
62129
|
getLicenseFatalError() {
|
|
62112
|
-
if (!this.enableLiveLicenseCheck) {
|
|
62113
|
-
return;
|
|
62114
|
-
}
|
|
62115
62130
|
if (this.licenseStatusResult === LicenseStatus.LICENSE_STATUS_INVALID) {
|
|
62116
62131
|
console.warn(`current license is invalid, please check license`);
|
|
62117
62132
|
return ErrorCode.LICENSE_STATUS_INVALID;
|
|
@@ -62124,7 +62139,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62124
62139
|
// 验证 License 是否支持该 feature
|
|
62125
62140
|
checkLiveLicenseFeature(feature) {
|
|
62126
62141
|
var _a, _b;
|
|
62127
|
-
if (!
|
|
62142
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62128
62143
|
return;
|
|
62129
62144
|
}
|
|
62130
62145
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
@@ -62654,7 +62669,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62654
62669
|
return LiveUrlType.Rtm;
|
|
62655
62670
|
}
|
|
62656
62671
|
get defaultFallbackStrategy() {
|
|
62657
|
-
return { [FallbackKind.Error]: {
|
|
62672
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62658
62673
|
}
|
|
62659
62674
|
static canGenerateOtherProtocol(options) {
|
|
62660
62675
|
var _a;
|
|
@@ -62697,10 +62712,17 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62697
62712
|
i18n,
|
|
62698
62713
|
enableSelector
|
|
62699
62714
|
}) {
|
|
62715
|
+
var _a;
|
|
62700
62716
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62701
62717
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62702
62718
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62703
62719
|
}
|
|
62720
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62721
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62722
|
+
);
|
|
62723
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62724
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62725
|
+
}
|
|
62704
62726
|
this.protocolStrategy = await getRtmStrategy(
|
|
62705
62727
|
enableSelector ? {
|
|
62706
62728
|
options,
|
|
@@ -74163,7 +74185,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
74163
74185
|
}
|
|
74164
74186
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74165
74187
|
...options,
|
|
74166
|
-
playerVersion: "2.11.
|
|
74188
|
+
playerVersion: "2.11.2",
|
|
74167
74189
|
type: "LIVE"
|
|
74168
74190
|
}));
|
|
74169
74191
|
return liveVeStrategy.veStrategyManager;
|
package/umd/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
|
|
@@ -6347,9 +6349,6 @@ declare class LicenseEventEmitter {
|
|
|
6347
6349
|
start(player: any): void;
|
|
6348
6350
|
}
|
|
6349
6351
|
declare class LiveLicenseManager {
|
|
6350
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6351
|
-
// @ts-ignore
|
|
6352
|
-
enableLiveLicenseCheck: boolean;
|
|
6353
6352
|
licenseSupportModuleList: LicenseFeature[];
|
|
6354
6353
|
licenseStatusResult?: LicenseStatus;
|
|
6355
6354
|
licenseCheckResult?: LicenseEdition;
|
|
@@ -11037,6 +11036,7 @@ declare namespace live {
|
|
|
11037
11036
|
H265 = "h265",
|
|
11038
11037
|
PRELOAD = "preload",
|
|
11039
11038
|
RTM = "rtm",
|
|
11039
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer",
|
|
11040
11040
|
ABR = "abr",
|
|
11041
11041
|
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11042
11042
|
}
|
|
@@ -11588,7 +11588,8 @@ declare namespace live {
|
|
|
11588
11588
|
enum LiveLicenseFeature {
|
|
11589
11589
|
RTM = "rtm",
|
|
11590
11590
|
ABR = "abr",
|
|
11591
|
-
FLV_LOW_LATENCY = "flvLowLatency"
|
|
11591
|
+
FLV_LOW_LATENCY = "flvLowLatency",
|
|
11592
|
+
RTM_ADAPTIVE_BUFFER = "rtmAdaptiveBuffer"
|
|
11592
11593
|
}
|
|
11593
11594
|
/** {zh}
|
|
11594
11595
|
* @list option
|
|
@@ -11623,9 +11624,6 @@ declare namespace live {
|
|
|
11623
11624
|
start(player: any): void;
|
|
11624
11625
|
}
|
|
11625
11626
|
class LiveLicenseManager {
|
|
11626
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11627
|
-
// @ts-ignore
|
|
11628
|
-
enableLiveLicenseCheck: boolean;
|
|
11629
11627
|
licenseSupportModuleList: LicenseFeature[];
|
|
11630
11628
|
licenseStatusResult?: LicenseStatus;
|
|
11631
11629
|
licenseCheckResult?: LicenseEdition;
|
|
@@ -14620,7 +14620,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14620
14620
|
* @brief Retrieve the player SDK version number.
|
|
14621
14621
|
*/
|
|
14622
14622
|
get playerVersion() {
|
|
14623
|
-
return "2.11.
|
|
14623
|
+
return "2.11.2";
|
|
14624
14624
|
}
|
|
14625
14625
|
/** {zh}
|
|
14626
14626
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -31064,6 +31064,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
31064
31064
|
LicenseFeature2["H265"] = "h265";
|
|
31065
31065
|
LicenseFeature2["PRELOAD"] = "preload";
|
|
31066
31066
|
LicenseFeature2["RTM"] = "rtm";
|
|
31067
|
+
LicenseFeature2["RTM_ADAPTIVE_BUFFER"] = "rtmAdaptiveBuffer";
|
|
31067
31068
|
LicenseFeature2["ABR"] = "abr";
|
|
31068
31069
|
LicenseFeature2["FLV_LOW_LATENCY"] = "flvLowLatency";
|
|
31069
31070
|
return LicenseFeature2;
|
|
@@ -56479,7 +56480,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
56479
56480
|
device_id: deviceId,
|
|
56480
56481
|
error_report_stop: true,
|
|
56481
56482
|
ext: {
|
|
56482
|
-
veplayer_version: "2.11.
|
|
56483
|
+
veplayer_version: "2.11.2",
|
|
56483
56484
|
flv_version: "3.0.23-rc.6",
|
|
56484
56485
|
hls_version: "3.0.21-rc.21",
|
|
56485
56486
|
rts_version: "0.2.1-alpha.57"
|
|
@@ -62014,6 +62015,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62014
62015
|
code: ErrorCode.LICENSE_EXPIRED_RTM
|
|
62015
62016
|
}
|
|
62016
62017
|
},
|
|
62018
|
+
[
|
|
62019
|
+
"rtmAdaptiveBuffer"
|
|
62020
|
+
/* RTM_ADAPTIVE_BUFFER */
|
|
62021
|
+
]: {
|
|
62022
|
+
BASE_LICENSE_NOT_SUPPORT: {
|
|
62023
|
+
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
62024
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62025
|
+
},
|
|
62026
|
+
LICENSE_EXPIRED: {
|
|
62027
|
+
type: "LICENSE_EXPIRED",
|
|
62028
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62029
|
+
}
|
|
62030
|
+
},
|
|
62017
62031
|
[LicenseFeature.PRELOAD]: {
|
|
62018
62032
|
BASE_LICENSE_NOT_SUPPORT: {
|
|
62019
62033
|
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
@@ -62045,6 +62059,16 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62045
62059
|
}
|
|
62046
62060
|
}
|
|
62047
62061
|
};
|
|
62062
|
+
const premiumFeatureList = (
|
|
62063
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62064
|
+
// @ts-ignore
|
|
62065
|
+
[
|
|
62066
|
+
LicenseFeature.RTM,
|
|
62067
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
62068
|
+
LicenseFeature.ABR,
|
|
62069
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
62070
|
+
]
|
|
62071
|
+
);
|
|
62048
62072
|
class LicenseEventEmitter {
|
|
62049
62073
|
constructor() {
|
|
62050
62074
|
__publicField(this, "player");
|
|
@@ -62085,17 +62109,11 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62085
62109
|
}
|
|
62086
62110
|
class LiveLicenseManager {
|
|
62087
62111
|
constructor() {
|
|
62088
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
62089
|
-
// @ts-ignore
|
|
62090
|
-
__publicField(this, "enableLiveLicenseCheck", true);
|
|
62091
62112
|
__publicField(this, "licenseSupportModuleList", []);
|
|
62092
62113
|
__publicField(this, "licenseStatusResult");
|
|
62093
62114
|
__publicField(this, "licenseCheckResult");
|
|
62094
62115
|
}
|
|
62095
62116
|
async create() {
|
|
62096
|
-
if (!this.enableLiveLicenseCheck) {
|
|
62097
|
-
return;
|
|
62098
|
-
}
|
|
62099
62117
|
const [license, featureList] = await Promise.all([
|
|
62100
62118
|
licenseManager.checkLicense(),
|
|
62101
62119
|
licenseManager.checkModuleList()
|
|
@@ -62109,9 +62127,6 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62109
62127
|
}
|
|
62110
62128
|
// 获取 License Fatal 报错信息,License 有问题或者 Domain 不匹配
|
|
62111
62129
|
getLicenseFatalError() {
|
|
62112
|
-
if (!this.enableLiveLicenseCheck) {
|
|
62113
|
-
return;
|
|
62114
|
-
}
|
|
62115
62130
|
if (this.licenseStatusResult === LicenseStatus.LICENSE_STATUS_INVALID) {
|
|
62116
62131
|
console.warn(`current license is invalid, please check license`);
|
|
62117
62132
|
return ErrorCode.LICENSE_STATUS_INVALID;
|
|
@@ -62124,7 +62139,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62124
62139
|
// 验证 License 是否支持该 feature
|
|
62125
62140
|
checkLiveLicenseFeature(feature) {
|
|
62126
62141
|
var _a, _b;
|
|
62127
|
-
if (!
|
|
62142
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
62128
62143
|
return;
|
|
62129
62144
|
}
|
|
62130
62145
|
const result = licenseManager.licenseSupportModuleList.includes(feature);
|
|
@@ -62654,7 +62669,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62654
62669
|
return LiveUrlType.Rtm;
|
|
62655
62670
|
}
|
|
62656
62671
|
get defaultFallbackStrategy() {
|
|
62657
|
-
return { [FallbackKind.Error]: {
|
|
62672
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
62658
62673
|
}
|
|
62659
62674
|
static canGenerateOtherProtocol(options) {
|
|
62660
62675
|
var _a;
|
|
@@ -62697,10 +62712,17 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62697
62712
|
i18n,
|
|
62698
62713
|
enableSelector
|
|
62699
62714
|
}) {
|
|
62715
|
+
var _a;
|
|
62700
62716
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
62701
62717
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
62702
62718
|
throw create(licenseRtmNotSupportedError.code, i18n);
|
|
62703
62719
|
}
|
|
62720
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
62721
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
62722
|
+
);
|
|
62723
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
62724
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
62725
|
+
}
|
|
62704
62726
|
this.protocolStrategy = await getRtmStrategy(
|
|
62705
62727
|
enableSelector ? {
|
|
62706
62728
|
options,
|
|
@@ -74170,7 +74192,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
74170
74192
|
}
|
|
74171
74193
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
74172
74194
|
...options,
|
|
74173
|
-
playerVersion: "2.11.
|
|
74195
|
+
playerVersion: "2.11.2",
|
|
74174
74196
|
type: "LIVE"
|
|
74175
74197
|
}));
|
|
74176
74198
|
return liveVeStrategy.veStrategyManager;
|