@theoplayer/extended 3.7.0 → 4.1.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/README.md +1 -1
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.d.ts +39 -33
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/THEOplayer.transmux.wasm +0 -0
- package/iframe.html +1 -1
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/theoplayer.sw.js +3 -3
package/THEOplayer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* THEOplayer
|
|
3
3
|
* https://www.theoplayer.com
|
|
4
4
|
*
|
|
5
|
-
* Version: 2022.3.
|
|
5
|
+
* Version: 2022.3.3 (4.1.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
|
/**
|
|
@@ -743,6 +752,16 @@ export declare interface AgamaPlayerConfiguration extends AgamaConfiguration {
|
|
|
743
752
|
* <br/> - Will not be reported to Agama if not present
|
|
744
753
|
*/
|
|
745
754
|
userAccountID?: string;
|
|
755
|
+
/**
|
|
756
|
+
* The identifier of the device.
|
|
757
|
+
*
|
|
758
|
+
* @remarks
|
|
759
|
+
* <br/> - Available since v4.1.0.
|
|
760
|
+
* <br/> - Make sure to pass a valid string as indicated by the Agama SDK documentation. No specific value format validation is performed on this
|
|
761
|
+
* as that is deemed the responsibility of the one setting this value externally via this configuration property.
|
|
762
|
+
* <br/> - Will be generated internally if not present
|
|
763
|
+
*/
|
|
764
|
+
deviceID?: string;
|
|
746
765
|
}
|
|
747
766
|
|
|
748
767
|
/**
|
|
@@ -3171,13 +3190,6 @@ export declare interface DRMConfiguration {
|
|
|
3171
3190
|
preferredKeySystems?: Array<KeySystemId | string>;
|
|
3172
3191
|
}
|
|
3173
3192
|
|
|
3174
|
-
/**
|
|
3175
|
-
* A function which processes DRM data.
|
|
3176
|
-
*
|
|
3177
|
-
* @public
|
|
3178
|
-
*/
|
|
3179
|
-
export declare type DRMProcessor = (arrayBuffer: ArrayBuffer) => ArrayBuffer;
|
|
3180
|
-
|
|
3181
3193
|
/**
|
|
3182
3194
|
* Describes the configuration of the DRM Today DRM integration.
|
|
3183
3195
|
*
|
|
@@ -3941,6 +3953,11 @@ export declare interface GoogleDAI {
|
|
|
3941
3953
|
* Whether snapback is enabled. When enabled and the user seeks over multiple ad breaks, the last ad break that was seeked past will be played.
|
|
3942
3954
|
*/
|
|
3943
3955
|
snapback: boolean;
|
|
3956
|
+
/**
|
|
3957
|
+
* A source transformer which will receive the source as returned from Google DAI before loading it in the player. This capability can be useful
|
|
3958
|
+
* if you need to add authentication tokens or signatures to the source URL as returned by Google.
|
|
3959
|
+
*/
|
|
3960
|
+
sourceTransformer: (url: string) => string | Promise<string>;
|
|
3944
3961
|
}
|
|
3945
3962
|
|
|
3946
3963
|
/**
|
|
@@ -4401,7 +4418,7 @@ export declare interface HistogramTrackLabeledMetric extends Metric {
|
|
|
4401
4418
|
export declare type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
|
|
4402
4419
|
|
|
4403
4420
|
/**
|
|
4404
|
-
* Represents a configuration for controlling playback of an
|
|
4421
|
+
* Represents a configuration for controlling playback of an HLS stream.
|
|
4405
4422
|
*
|
|
4406
4423
|
* @remarks
|
|
4407
4424
|
* <br/> - Available since v2.82.0.
|
|
@@ -4415,6 +4432,19 @@ export declare interface HlsPlaybackConfiguration {
|
|
|
4415
4432
|
* @defaultValue `'auto'`
|
|
4416
4433
|
*/
|
|
4417
4434
|
discontinuityAlignment?: HlsDiscontinuityAlignment;
|
|
4435
|
+
/**
|
|
4436
|
+
* Whether this source should be played using the legacy HLS pipeline.
|
|
4437
|
+
*
|
|
4438
|
+
* <br/> - If set to `true`, always use the legacy HLS pipeline.
|
|
4439
|
+
* <br/> - If set to `false`, never use the legacy HLS pipeline.
|
|
4440
|
+
* <br/> - If set to `undefined` (default), use the modern HLS pipeline if available, otherwise fall back to the legacy HLS pipeline.
|
|
4441
|
+
*
|
|
4442
|
+
* @defaultValue `undefined`
|
|
4443
|
+
*
|
|
4444
|
+
* @remarks
|
|
4445
|
+
* <br/> - Available since v4.0.0.
|
|
4446
|
+
*/
|
|
4447
|
+
useLegacy?: boolean;
|
|
4418
4448
|
}
|
|
4419
4449
|
|
|
4420
4450
|
/**
|
|
@@ -5411,30 +5441,6 @@ export declare interface KeySystemConfiguration {
|
|
|
5411
5441
|
* 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
5442
|
*/
|
|
5413
5443
|
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
5444
|
}
|
|
5439
5445
|
|
|
5440
5446
|
/**
|