@theoplayer/extended 4.4.0 → 4.5.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.4.2 (4.4.0)
5
+ * Version: 2022.4.3 (4.5.0)
6
6
  */
7
7
 
8
8
  /**
@@ -511,7 +511,10 @@ export declare interface AdsConfiguration {
511
511
  * @defaultValue `'enabled'`
512
512
  */
513
513
  vpaidMode?: VPAIDMode;
514
-
514
+ /**
515
+ * The Google IMA configuration.
516
+ */
517
+ googleIma?: GoogleImaConfiguration;
515
518
  }
516
519
 
517
520
  /**
@@ -3959,6 +3962,10 @@ export declare interface GoogleDAIConfiguration extends ServerSideAdInsertionCon
3959
3962
  * The identifier for a stream activity monitor session.
3960
3963
  */
3961
3964
  streamActivityMonitorID?: string;
3965
+ /**
3966
+ * Optional settings object for mapping verification vendors (google.ima.OmidVerificationVendor) to OMID Access Modes (google.ima.OmidAccessMode).
3967
+ */
3968
+ omidAccessModeRules?: Record<number, string>;
3962
3969
  }
3963
3970
 
3964
3971
  /**
@@ -4114,6 +4121,25 @@ export declare interface GoogleImaAd extends Ad {
4114
4121
  apiFramework: string | undefined;
4115
4122
  }
4116
4123
 
4124
+ /**
4125
+ * Describes the configuration of Google IMA.
4126
+ *
4127
+ * @public
4128
+ */
4129
+ export declare interface GoogleImaConfiguration {
4130
+
4131
+ /**
4132
+ * The maximum recommended bitrate in kbit/s. Ads with a bitrate below the specified maximum will be picked.
4133
+ *
4134
+ * @remarks
4135
+ * <br/> - When set to -1, it will select the ad with the highest bitrate.
4136
+ * <br/> - If there is no ad below the specified maximum, the ad closest to the bitrate will be picked.
4137
+ *
4138
+ * @defaultValue -1
4139
+ */
4140
+ bitrate?: number;
4141
+ }
4142
+
4117
4143
  /**
4118
4144
  * The HESP API.
4119
4145
  * @remarks
@@ -4785,9 +4811,7 @@ export declare interface IMAAdDescription extends AdDescription {
4785
4811
  /**
4786
4812
  * Optional settings object for mapping verification vendors (google.ima.OmidVerificationVendor) to OMID Access Modes (google.ima.OmidAccessMode).
4787
4813
  */
4788
- omidAccessModeRules?: {
4789
- [key: number]: string;
4790
- };
4814
+ omidAccessModeRules?: Record<number, string>;
4791
4815
  }
4792
4816
 
4793
4817
  /**
@@ -7432,10 +7456,14 @@ export { ResponseType_2 as ResponseType }
7432
7456
  * it always uses a hard switch.
7433
7457
  * Use this if you notice that the player is attempting but failing to preload the next period on the current platform only when
7434
7458
  * content protection is involved.
7459
+ * <br/> - `'same-drm-only'`: The player only uses a seamless switch when the same or no content protection is used in the current and next period. Otherwise
7460
+ * it always uses a hard switch.
7461
+ * Use this if you notice that the player is attempting but failing to preload the next period on the current platform only when
7462
+ * content protection is different between periods.
7435
7463
  *
7436
7464
  * @public
7437
7465
  */
7438
- export declare type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never' | 'clear-only';
7466
+ export declare type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never' | 'clear-only' | 'same-drm-only';
7439
7467
 
7440
7468
  /**
7441
7469
  * Fired when `ChromelessPlayer.seeking` changes to `false` after the current playback position was changed.