@theoplayer/extended 3.5.0 → 3.7.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.2.2 (3.5.0)
5
+ * Version: 2022.3.1 (3.7.0)
6
6
  */
7
7
 
8
8
  /**
@@ -435,6 +435,13 @@ export declare interface Ads extends EventDispatcher<AdsEventMap> {
435
435
  * @deprecated Superseded by {@link Ads.scheduledAdBreaks}.
436
436
  */
437
437
  readonly scheduledAds: Ad[];
438
+ /**
439
+ * The Google DAI API.
440
+ *
441
+ * @remarks
442
+ * <br/> - Only available with the feature `'google-dai'`.
443
+ */
444
+ readonly dai?: GoogleDAI;
438
445
  /**
439
446
  * Add an ad break request.
440
447
  *
@@ -1101,6 +1108,15 @@ export declare interface BaseSource {
1101
1108
  * <br/> - Used for DASH and LL-HLS streams.
1102
1109
  */
1103
1110
  abr?: SourceAbrConfiguration;
1111
+ /**
1112
+ * Whether this source should be played using the LCEVC sdk.
1113
+ *
1114
+ * @remarks
1115
+ * <br/> - Requires the LCEVC feature to be enabled.
1116
+ * <br/> - Requires the V-Nova LCEVC SDK to be loaded on the page.
1117
+ * <br/> - Only available for DASH and HLS streams.
1118
+ */
1119
+ lcevc?: boolean;
1104
1120
  }
1105
1121
 
1106
1122
  /**
@@ -3900,6 +3916,33 @@ export declare interface GlobalChromecast {
3900
3916
  endSession(): void;
3901
3917
  }
3902
3918
 
3919
+ /**
3920
+ * The Google DAI API.
3921
+ *
3922
+ * @remarks
3923
+ * <br/> - Available since v3.7.0.
3924
+ *
3925
+ * @public
3926
+ */
3927
+ export declare interface GoogleDAI {
3928
+ /**
3929
+ * Returns the content time without ads for a given stream time. Returns the given stream time for live streams.
3930
+ *
3931
+ * @param time - The stream time with inserted ads (in seconds).
3932
+ */
3933
+ contentTimeForStreamTime(time: number): number;
3934
+ /**
3935
+ * Returns the stream time with ads for a given content time. Returns the given content time for live streams.
3936
+ *
3937
+ * @param time - The content time without any ads (in seconds).
3938
+ */
3939
+ streamTimeForContentTime(time: number): number;
3940
+ /**
3941
+ * 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
+ */
3943
+ snapback: boolean;
3944
+ }
3945
+
3903
3946
  /**
3904
3947
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
3905
3948
  *
@@ -4858,6 +4901,12 @@ export declare interface IMAAdDescription extends AdDescription {
4858
4901
  * <br/> - VAST, VMAP and VPAID are supported.
4859
4902
  */
4860
4903
  sources: string | AdSource;
4904
+ /**
4905
+ * Optional settings object for mapping verification vendors (google.ima.OmidVerificationVendor) to OMID Access Modes (google.ima.OmidAccessMode).
4906
+ */
4907
+ omidAccessModeRules?: {
4908
+ [key: number]: string;
4909
+ };
4861
4910
  }
4862
4911
 
4863
4912
  /**