@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/package.json
CHANGED
|
@@ -29002,6 +29002,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
29002
29002
|
LicenseFeature2["H265"] = "h265";
|
|
29003
29003
|
LicenseFeature2["PRELOAD"] = "preload";
|
|
29004
29004
|
LicenseFeature2["RTM"] = "rtm";
|
|
29005
|
+
LicenseFeature2["RTM_ADAPTIVE_BUFFER"] = "rtmAdaptiveBuffer";
|
|
29005
29006
|
LicenseFeature2["ABR"] = "abr";
|
|
29006
29007
|
LicenseFeature2["FLV_LOW_LATENCY"] = "flvLowLatency";
|
|
29007
29008
|
return LicenseFeature2;
|
|
@@ -34375,6 +34376,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
34375
34376
|
code: ErrorCode$1.LICENSE_EXPIRED_RTM
|
|
34376
34377
|
}
|
|
34377
34378
|
},
|
|
34379
|
+
[
|
|
34380
|
+
"rtmAdaptiveBuffer"
|
|
34381
|
+
/* RTM_ADAPTIVE_BUFFER */
|
|
34382
|
+
]: {
|
|
34383
|
+
BASE_LICENSE_NOT_SUPPORT: {
|
|
34384
|
+
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
34385
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
34386
|
+
},
|
|
34387
|
+
LICENSE_EXPIRED: {
|
|
34388
|
+
type: "LICENSE_EXPIRED",
|
|
34389
|
+
feature: LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
34390
|
+
}
|
|
34391
|
+
},
|
|
34378
34392
|
[LicenseFeature.PRELOAD]: {
|
|
34379
34393
|
BASE_LICENSE_NOT_SUPPORT: {
|
|
34380
34394
|
type: "BASE_LICENSE_NOT_SUPPORT",
|
|
@@ -34406,6 +34420,15 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
34406
34420
|
}
|
|
34407
34421
|
}
|
|
34408
34422
|
};
|
|
34423
|
+
const premiumFeatureList = (
|
|
34424
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34425
|
+
// @ts-ignore
|
|
34426
|
+
[
|
|
34427
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER,
|
|
34428
|
+
LicenseFeature.ABR,
|
|
34429
|
+
LicenseFeature.FLV_LOW_LATENCY
|
|
34430
|
+
]
|
|
34431
|
+
);
|
|
34409
34432
|
class LicenseEventEmitter {
|
|
34410
34433
|
constructor() {
|
|
34411
34434
|
__publicField(this, "player");
|
|
@@ -34476,6 +34499,9 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
34476
34499
|
// 验证 License 是否支持该 feature
|
|
34477
34500
|
checkLiveLicenseFeature(feature) {
|
|
34478
34501
|
var _a, _b;
|
|
34502
|
+
if (!premiumFeatureList.includes(feature)) {
|
|
34503
|
+
return;
|
|
34504
|
+
}
|
|
34479
34505
|
const result = licenseManager$1.licenseSupportModuleList.includes(feature);
|
|
34480
34506
|
if (!result) {
|
|
34481
34507
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|
|
@@ -35021,7 +35047,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
35021
35047
|
return LiveUrlType.Rtm;
|
|
35022
35048
|
}
|
|
35023
35049
|
get defaultFallbackStrategy() {
|
|
35024
|
-
return { [FallbackKind.Error]: {
|
|
35050
|
+
return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
|
|
35025
35051
|
}
|
|
35026
35052
|
static canGenerateOtherProtocol(options) {
|
|
35027
35053
|
var _a;
|
|
@@ -35064,10 +35090,17 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
35064
35090
|
i18n,
|
|
35065
35091
|
enableSelector
|
|
35066
35092
|
}) {
|
|
35093
|
+
var _a;
|
|
35067
35094
|
const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
|
|
35068
35095
|
if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
|
|
35069
35096
|
throw create$d(licenseRtmNotSupportedError.code, i18n);
|
|
35070
35097
|
}
|
|
35098
|
+
const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
|
|
35099
|
+
LicenseFeature.RTM_ADAPTIVE_BUFFER
|
|
35100
|
+
);
|
|
35101
|
+
if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
|
|
35102
|
+
options.rtm.enableAdaptiveJitterBuffer = false;
|
|
35103
|
+
}
|
|
35071
35104
|
this.protocolStrategy = await getRtmStrategy(
|
|
35072
35105
|
enableSelector ? {
|
|
35073
35106
|
options,
|