@byteplus/veplayer 2.11.1 → 2.12.0-rc.0

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.
Files changed (35) hide show
  1. package/esm/veplayer.biz.live.development.js +37 -3
  2. package/esm/veplayer.biz.live.production.js +1 -1
  3. package/esm/veplayer.d.ts +6 -2
  4. package/esm/veplayer.development.css +21 -5
  5. package/esm/veplayer.development.js +407 -4
  6. package/esm/veplayer.live.d.ts +6 -2
  7. package/esm/veplayer.live.development.css +21 -5
  8. package/esm/veplayer.live.development.js +407 -4
  9. package/esm/veplayer.live.production.css +1 -1
  10. package/esm/veplayer.live.production.js +3 -3
  11. package/esm/veplayer.production.css +1 -1
  12. package/esm/veplayer.production.js +3 -3
  13. package/esm/veplayer.vod.development.css +21 -5
  14. package/esm/veplayer.vod.development.js +370 -1
  15. package/esm/veplayer.vod.production.css +1 -1
  16. package/esm/veplayer.vod.production.js +3 -3
  17. package/package.json +1 -1
  18. package/umd/veplayer.biz.live.development.js +37 -3
  19. package/umd/veplayer.biz.live.production.js +1 -1
  20. package/umd/veplayer.d.ts +6 -2
  21. package/umd/veplayer.development.css +21 -5
  22. package/umd/veplayer.development.js +407 -4
  23. package/umd/veplayer.live.d.ts +6 -2
  24. package/umd/veplayer.live.development.css +21 -5
  25. package/umd/veplayer.live.development.js +407 -4
  26. package/umd/veplayer.live.production.css +1 -1
  27. package/umd/veplayer.live.production.js +1 -1
  28. package/umd/veplayer.production.css +1 -1
  29. package/umd/veplayer.production.js +1 -1
  30. package/umd/veplayer.vod.development.css +21 -5
  31. package/umd/veplayer.vod.development.js +370 -1
  32. package/umd/veplayer.vod.production.css +1 -1
  33. package/umd/veplayer.vod.production.js +1 -1
  34. package/veplayer.d.ts +6 -2
  35. package/veplayer.live.d.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/veplayer",
3
- "version": "2.11.1",
3
+ "version": "2.12.0-rc.0",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
@@ -26717,7 +26717,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
26717
26717
  device_id: deviceId,
26718
26718
  error_report_stop: true,
26719
26719
  ext: {
26720
- veplayer_version: "2.3.0",
26720
+ veplayer_version: "2.3.1-rc.3",
26721
26721
  flv_version: "3.0.23-rc.6",
26722
26722
  hls_version: "3.0.21-rc.21",
26723
26723
  rts_version: "0.2.1-alpha.57"
@@ -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,16 @@ 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,
34428
+ LicenseFeature.RTM_ADAPTIVE_BUFFER,
34429
+ LicenseFeature.ABR,
34430
+ LicenseFeature.FLV_LOW_LATENCY
34431
+ ]
34432
+ );
34409
34433
  class LicenseEventEmitter {
34410
34434
  constructor() {
34411
34435
  __publicField(this, "player");
@@ -34476,6 +34500,9 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
34476
34500
  // 验证 License 是否支持该 feature
34477
34501
  checkLiveLicenseFeature(feature) {
34478
34502
  var _a, _b;
34503
+ if (!premiumFeatureList.includes(feature)) {
34504
+ return;
34505
+ }
34479
34506
  const result = licenseManager$1.licenseSupportModuleList.includes(feature);
34480
34507
  if (!result) {
34481
34508
  if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
@@ -35021,7 +35048,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
35021
35048
  return LiveUrlType.Rtm;
35022
35049
  }
35023
35050
  get defaultFallbackStrategy() {
35024
- return { [FallbackKind.Error]: { shouldFallback: () => true } };
35051
+ return { [FallbackKind.Error]: { excludeList: [2104, 2103, 2101, 2100] } };
35025
35052
  }
35026
35053
  static canGenerateOtherProtocol(options) {
35027
35054
  var _a;
@@ -35064,10 +35091,17 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
35064
35091
  i18n,
35065
35092
  enableSelector
35066
35093
  }) {
35094
+ var _a;
35067
35095
  const licenseRtmNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(LicenseFeature.RTM);
35068
35096
  if (licenseRtmNotSupportedError == null ? void 0 : licenseRtmNotSupportedError.code) {
35069
35097
  throw create$d(licenseRtmNotSupportedError.code, i18n);
35070
35098
  }
35099
+ const licenseRtmAdaptiveBufferNotSupportedError = liveLicenseManager.checkLiveLicenseFeature(
35100
+ LicenseFeature.RTM_ADAPTIVE_BUFFER
35101
+ );
35102
+ if (licenseRtmAdaptiveBufferNotSupportedError && ((_a = options.rtm) == null ? void 0 : _a.enableAdaptiveJitterBuffer)) {
35103
+ options.rtm.enableAdaptiveJitterBuffer = false;
35104
+ }
35071
35105
  this.protocolStrategy = await getRtmStrategy(
35072
35106
  enableSelector ? {
35073
35107
  options,
@@ -51344,7 +51378,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
51344
51378
  }
51345
51379
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
51346
51380
  ...options,
51347
- playerVersion: "2.3.0",
51381
+ playerVersion: "2.3.1-rc.3",
51348
51382
  type: "LIVE"
51349
51383
  }));
51350
51384
  return liveVeStrategy.veStrategyManager;