@theoplayer/extended 3.6.1 → 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.3.0 (3.6.1)
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
  *
@@ -3909,6 +3916,33 @@ export declare interface GlobalChromecast {
3909
3916
  endSession(): void;
3910
3917
  }
3911
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
+
3912
3946
  /**
3913
3947
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
3914
3948
  *