@theoplayer/extended 4.6.0 → 4.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: 2023.1.0 (4.6.0)
5
+ * Version: 2023.1.1 (4.7.0)
6
6
  */
7
7
 
8
8
  /**
@@ -172,7 +172,7 @@ export declare interface Ad {
172
172
  */
173
173
  height: number | undefined;
174
174
  /**
175
- * The URI of the the ad content.
175
+ * The URI of the ad content.
176
176
  *
177
177
  * @remarks
178
178
  * <br/> - Available when the {@link Ad.readyState} is `'ready'`.
@@ -1168,7 +1168,7 @@ export declare interface BufferedSegments {
1168
1168
 
1169
1169
  /**
1170
1170
  * Helper type that represents either an ArrayBuffer or an ArrayBufferView.
1171
- * Inspired by https://developer.mozilla.org/en-US/docs/Web/API/BufferSource.
1171
+ * Inspired by {@link https://webidl.spec.whatwg.org/#common-BufferSource}.
1172
1172
  *
1173
1173
  * @public
1174
1174
  */
@@ -1275,7 +1275,7 @@ export declare interface CachingTask extends EventDispatcher<CachingTaskEventMap
1275
1275
  /**
1276
1276
  * The time ranges cached.
1277
1277
  */
1278
- readonly cached: NativeTimeRanges;
1278
+ readonly cached: TimeRanges_2;
1279
1279
  /**
1280
1280
  * The duration cached, in seconds.
1281
1281
  */
@@ -1919,7 +1919,7 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
1919
1919
  /**
1920
1920
  * Returns a TimeRanges object that represents the ranges of the media resource that the player has buffered.
1921
1921
  */
1922
- readonly buffered: TimeRanges;
1922
+ readonly buffered: TimeRanges_2;
1923
1923
  /**
1924
1924
  * The clip API.
1925
1925
  */
@@ -2020,7 +2020,7 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
2020
2020
  /**
2021
2021
  * Returns a TimeRanges object that represents the ranges of the media resource that the player has played.
2022
2022
  */
2023
- played: TimeRanges;
2023
+ played: TimeRanges_2;
2024
2024
  /**
2025
2025
  * The poster of the current source.
2026
2026
  *
@@ -2051,7 +2051,7 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
2051
2051
  * @remarks
2052
2052
  * <br/> - On source change, seekable becomes available after {@link ChromelessPlayer.readyState} is at least `1`.
2053
2053
  */
2054
- seekable: TimeRanges;
2054
+ seekable: TimeRanges_2;
2055
2055
  /**
2056
2056
  * Whether the player is seeking.
2057
2057
  */
@@ -3141,7 +3141,7 @@ export declare interface DRMConfiguration {
3141
3141
  [parameterName: string]: any;
3142
3142
  };
3143
3143
  /**
3144
- * An ordered list of URNs of key systems as specified by https://dashif.org/identifiers/content_protection/, or one of the following identifiers:
3144
+ * An ordered list of URNs of key systems as specified by {@link https://dashif.org/identifiers/content_protection/}, or one of the following identifiers:
3145
3145
  *
3146
3146
  * `"widevine"` alias for `"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"`
3147
3147
  * `"fairplay"` alias for `"urn:uuid:94ce86fb-07bb-4b43-adb8-93d2fa968ca2"`
@@ -5861,7 +5861,7 @@ export declare class MultiViewPlayer implements EventDispatcher<MultiViewPlayerE
5861
5861
  /**
5862
5862
  * Returns a TimeRanges object that represents the intersection of all buffered properties of the underlying players.
5863
5863
  */
5864
- readonly buffered: TimeRanges;
5864
+ readonly buffered: TimeRanges_2;
5865
5865
  /**
5866
5866
  * The current playback position of the player currently at position zero.
5867
5867
  */
@@ -5901,7 +5901,7 @@ export declare class MultiViewPlayer implements EventDispatcher<MultiViewPlayerE
5901
5901
  /**
5902
5902
  * Returns the intersection of all played properties of the underlying players.
5903
5903
  */
5904
- readonly played: TimeRanges;
5904
+ readonly played: TimeRanges_2;
5905
5905
  /**
5906
5906
  * Returns the minimum of all readyState properties of the underlying players.
5907
5907
  */
@@ -5909,7 +5909,7 @@ export declare class MultiViewPlayer implements EventDispatcher<MultiViewPlayerE
5909
5909
  /**
5910
5910
  * Returns the intersection of all seekable properties of the underlying players.
5911
5911
  */
5912
- readonly seekable: TimeRanges;
5912
+ readonly seekable: TimeRanges_2;
5913
5913
  /**
5914
5914
  * Whether any of the underlying players is seeking.
5915
5915
  */
@@ -6130,12 +6130,6 @@ export declare enum MultiViewPlayerLayout {
6130
6130
  */
6131
6131
  export declare type MutedAutoplayConfiguration = 'none' | 'all' | 'content';
6132
6132
 
6133
- declare interface NativeTimeRanges {
6134
- readonly length: number;
6135
- start(index: number): number;
6136
- end(index: number): number;
6137
- }
6138
-
6139
6133
  /**
6140
6134
  * The network API.
6141
6135
  *
@@ -6680,7 +6674,7 @@ export declare interface PlayerEventMap {
6680
6674
  */
6681
6675
  error: ErrorEvent_2;
6682
6676
  /**
6683
- * Fired when the the player is destroyed.
6677
+ * Fired when the player is destroyed.
6684
6678
  *
6685
6679
  * @remarks
6686
6680
  * <br/> - Available since v2.33.3.
@@ -8739,6 +8733,32 @@ export declare interface ThumbnailResolution {
8739
8733
  height?: number;
8740
8734
  }
8741
8735
 
8736
+ /**
8737
+ * Represents one or more ranges of time, each specified by a start time and an end time.
8738
+ *
8739
+ * @remarks
8740
+ * This is equivalent to the {@link https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges | TimeRanges} interface used by an HTML video element.
8741
+ *
8742
+ * @public
8743
+ */
8744
+ declare interface TimeRanges_2 {
8745
+ /** Returns the number of ranges in the object. */
8746
+ readonly length: number;
8747
+ /**
8748
+ * Returns the time for the start of the range with the given index.
8749
+ *
8750
+ * @throws Throws an Error if the index is out of bounds.
8751
+ */
8752
+ start(index: number): number;
8753
+ /**
8754
+ * Returns the time for the end of the range with the given index.
8755
+ *
8756
+ * @throws Throws an Error if the index is out of bounds.
8757
+ */
8758
+ end(index: number): number;
8759
+ }
8760
+ export { TimeRanges_2 as TimeRanges }
8761
+
8742
8762
  /**
8743
8763
  * Fired when the current playback position changed as part of normal playback or in an especially interesting way, for example discontinuously.
8744
8764
  *
@@ -10520,7 +10540,7 @@ export declare interface VerizonMediaPreplayLiveResponse extends VerizonMediaPre
10520
10540
  /**
10521
10541
  * The response type of the request.
10522
10542
  */
10523
- type: VerizonMediaPreplayResponseType.LIVE;
10543
+ type: 'live';
10524
10544
  }
10525
10545
 
10526
10546
  /**
@@ -10549,10 +10569,7 @@ export declare interface VerizonMediaPreplayResponseEvent extends Event_2<'prepl
10549
10569
  *
10550
10570
  * @public
10551
10571
  */
10552
- export declare enum VerizonMediaPreplayResponseType {
10553
- VOD = "vod",
10554
- LIVE = "live"
10555
- }
10572
+ export declare type VerizonMediaPreplayResponseType = 'vod' | 'live';
10556
10573
 
10557
10574
  /**
10558
10575
  * Represents a Verizon Media Preplay response for VOD assets.
@@ -10563,7 +10580,7 @@ export declare interface VerizonMediaPreplayVodResponse extends VerizonMediaPrep
10563
10580
  /**
10564
10581
  * The response type of the request.
10565
10582
  */
10566
- type: VerizonMediaPreplayResponseType.VOD;
10583
+ type: 'vod';
10567
10584
  /**
10568
10585
  * The advertisement information.
10569
10586
  */
@@ -11866,8 +11883,6 @@ export declare interface Yospace extends EventDispatcher<YospaceEventMap> {
11866
11883
  /**
11867
11884
  * The Yospace session.
11868
11885
  *
11869
- * @remarks
11870
- * <br/> - For the full API of this object, see {@link http://demo.yospace.com/SDK/javascript/docs/classes/YSSession.html | YSSession Class - Yospace JavaScript AdManagement SDK} for more information and examples
11871
11886
  */
11872
11887
  readonly session: object;
11873
11888
  /**
@@ -11886,7 +11901,6 @@ export declare interface Yospace extends EventDispatcher<YospaceEventMap> {
11886
11901
  *
11887
11902
  * @remarks
11888
11903
  * <br/> - These callbacks will be used by the Yospace SDK to provide feedback to the player.
11889
- * <br/> - See {@link http://demo.yospace.com/SDK/javascript/docs/classes/YSSessionManager.html#method_registerPlayer | YSSessionManager Class - Yospace JavaScript AdManagement SDK} for more information and examples
11890
11904
  *
11891
11905
  * @public
11892
11906
  */