@theoplayer/extended 4.9.1 → 4.11.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.3 (4.9.1)
5
+ * Version: 2023.1.5 (4.11.0)
6
6
  */
7
7
 
8
8
  /**
@@ -2977,6 +2977,19 @@ export declare interface DashPlaybackConfiguration {
2977
2977
  * THEOplayer support or engineering.
2978
2978
  */
2979
2979
  needsTimescaleShifting?: boolean | null;
2980
+ /**
2981
+ * (Experimental) The desired timescale to which the media data should be shifted.
2982
+ *
2983
+ * @remarks
2984
+ * <br/> - Available since v4.11.0.
2985
+ * <br/> - When specified, if the player decides to shift the timescale (see {@link DashPlaybackConfiguration.needsTimescaleShifting}), the timescale will be set to the
2986
+ * given desired timescale.
2987
+ * <br/> - When not specified, if the player decides to shift timescale, the player will decide the timescale to which it should shift.
2988
+ * <br/> - This is an experimental option. It should only be used after consulting with
2989
+ * THEOplayer support or engineering.
2990
+ */
2991
+ desiredTimescale?: number;
2992
+
2980
2993
  }
2981
2994
 
2982
2995
  /**
@@ -6500,6 +6513,10 @@ export declare interface PlayerConfiguration {
6500
6513
  * <br/> - Used for DASH and LL-HLS streams.
6501
6514
  */
6502
6515
  abr?: SourceAbrConfiguration;
6516
+ /**
6517
+ * The vr configuration for the player.
6518
+ */
6519
+ vr?: VRPlayerConfiguration;
6503
6520
  }
6504
6521
 
6505
6522
  /**
@@ -7352,6 +7369,7 @@ export declare type RequestMethod = 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'POS
7352
7369
  * The request's subtype, represented by a value from the following list:
7353
7370
  * <br/> - `'initialization-segment'`
7354
7371
  * <br/> - Any value of {@link ContentProtectionRequestSubType}
7372
+ * <br/> - Empty string (`''`) when the subtype is unknown
7355
7373
  *
7356
7374
  * @public
7357
7375
  */
@@ -7361,11 +7379,12 @@ export declare type RequestSubType = '' | 'initialization-segment' | ContentProt
7361
7379
  * The request's type, represented by a value from the following list:
7362
7380
  * <br/> - `'manifest'`
7363
7381
  * <br/> - `'segment'`
7382
+ * <br/> - `'preload-hint'`
7364
7383
  * <br/> - `'content-protection'`
7365
7384
  *
7366
7385
  * @public
7367
7386
  */
7368
- export declare type RequestType = '' | 'manifest' | 'segment' | 'content-protection';
7387
+ export declare type RequestType = '' | 'manifest' | 'segment' | 'preload-hint' | 'content-protection';
7369
7388
 
7370
7389
  /**
7371
7390
  * The possible types of an HTTP response body.
@@ -11451,6 +11470,15 @@ export declare interface VRConfiguration {
11451
11470
  * @defaultValue `false`
11452
11471
  */
11453
11472
  '360'?: boolean;
11473
+ /**
11474
+ * The panorama mode of the media.
11475
+ *
11476
+ * @remarks
11477
+ * <br/> - If the "360" property is set to true, panoramaMode is ignored and the content will be displayed as 360 degrees panorama.
11478
+ *
11479
+ * @defaultValue `undefined`
11480
+ */
11481
+ panoramaMode?: VRPanoramaMode;
11454
11482
  /**
11455
11483
  * The stereoscopic mode of the media.
11456
11484
  *
@@ -11521,6 +11549,30 @@ export declare interface VREventMap {
11521
11549
  error: ErrorEvent_2;
11522
11550
  }
11523
11551
 
11552
+ /**
11553
+ * The panorama mode of the VR content, represented by a value from the following list:
11554
+ * <br/> - `''`: No panorama mode.
11555
+ * <br/> - `'360'`: The video contains content with a full 360 degree field of view.
11556
+ * <br/> - `'180'`: The video contains content with a 180 degree field of view. `'180'` is only available when using the WebXR API.
11557
+ *
11558
+ * @public
11559
+ */
11560
+ export declare type VRPanoramaMode = '' | '360' | '180';
11561
+
11562
+ /**
11563
+ * Describes the VR configuration
11564
+ *
11565
+ * @public
11566
+ */
11567
+ declare interface VRPlayerConfiguration {
11568
+ /**
11569
+ * Whether to use the {@link https://immersiveweb.dev/ | WebXR API}.
11570
+ *
11571
+ * @defaultValue `false`
11572
+ */
11573
+ useWebXR?: boolean;
11574
+ }
11575
+
11524
11576
  /**
11525
11577
  * The state of the VR feature, represented by a value from the following list:
11526
11578
  * <br/> - `'unavailable'`