@theoplayer/extended 3.7.0 → 4.0.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.
package/THEOplayer.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * THEOplayer
3
3
  * https://www.theoplayer.com
4
4
  *
5
- * Version: 2022.3.1 (3.7.0)
5
+ * Version: 2022.3.2 (4.0.0)
6
6
  */
7
7
 
8
8
  /**
@@ -41,6 +41,15 @@ export declare interface ABRConfiguration {
41
41
  * @defaultValue `30`
42
42
  */
43
43
  bufferLookbackWindow?: number;
44
+ /**
45
+ * The maximum length of the player's buffer, in seconds.
46
+ *
47
+ * The player will initially buffer up to {@link ABRConfiguration.targetBuffer} seconds of media data.
48
+ * If the player detects that the decoder is unable to hold so much data,
49
+ * it will reduce `maxBufferLength` and restrict `targetBuffer` to be less than
50
+ * this maximum.
51
+ */
52
+ readonly maxBufferLength: number;
44
53
  }
45
54
 
46
55
  /**
@@ -3171,13 +3180,6 @@ export declare interface DRMConfiguration {
3171
3180
  preferredKeySystems?: Array<KeySystemId | string>;
3172
3181
  }
3173
3182
 
3174
- /**
3175
- * A function which processes DRM data.
3176
- *
3177
- * @public
3178
- */
3179
- export declare type DRMProcessor = (arrayBuffer: ArrayBuffer) => ArrayBuffer;
3180
-
3181
3183
  /**
3182
3184
  * Describes the configuration of the DRM Today DRM integration.
3183
3185
  *
@@ -4401,7 +4403,7 @@ export declare interface HistogramTrackLabeledMetric extends Metric {
4401
4403
  export declare type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
4402
4404
 
4403
4405
  /**
4404
- * Represents a configuration for controlling playback of an MPEG-DASH stream.
4406
+ * Represents a configuration for controlling playback of an HLS stream.
4405
4407
  *
4406
4408
  * @remarks
4407
4409
  * <br/> - Available since v2.82.0.
@@ -4415,6 +4417,19 @@ export declare interface HlsPlaybackConfiguration {
4415
4417
  * @defaultValue `'auto'`
4416
4418
  */
4417
4419
  discontinuityAlignment?: HlsDiscontinuityAlignment;
4420
+ /**
4421
+ * Whether this source should be played using the legacy HLS pipeline.
4422
+ *
4423
+ * <br/> - If set to `true`, always use the legacy HLS pipeline.
4424
+ * <br/> - If set to `false`, never use the legacy HLS pipeline.
4425
+ * <br/> - If set to `undefined` (default), use the modern HLS pipeline if available, otherwise fall back to the legacy HLS pipeline.
4426
+ *
4427
+ * @defaultValue `undefined`
4428
+ *
4429
+ * @remarks
4430
+ * <br/> - Available since v4.0.0.
4431
+ */
4432
+ useLegacy?: boolean;
4418
4433
  }
4419
4434
 
4420
4435
  /**
@@ -5411,30 +5426,6 @@ export declare interface KeySystemConfiguration {
5411
5426
  * The certificate for the key system. This can be either an ArrayBuffer or Uint8Array containing the raw certificate bytes or a base64-encoded variant of this.
5412
5427
  */
5413
5428
  certificate?: BufferSource_2 | string;
5414
- /**
5415
- * Process the certificate's request.
5416
- *
5417
- * @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onCertificateRequest} instead.
5418
- */
5419
- certificateRequestProcessor?: DRMProcessor;
5420
- /**
5421
- * Process the certificate's response.
5422
- *
5423
- * @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onCertificateResponse} instead.
5424
- */
5425
- certificateResponseProcessor?: DRMProcessor;
5426
- /**
5427
- * Process the license's request.
5428
- *
5429
- * @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onLicenseRequest} instead.
5430
- */
5431
- licenseRequestProcessor?: DRMProcessor;
5432
- /**
5433
- * Process the license's response.
5434
- *
5435
- * @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onLicenseResponse} instead.
5436
- */
5437
- licenseResponseProcessor?: DRMProcessor;
5438
5429
  }
5439
5430
 
5440
5431
  /**