@theoplayer/extended 5.0.0 → 5.0.1

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.2.1 (5.0.0)
5
+ * Version: 2023.2.1 (5.0.1)
6
6
  */
7
7
 
8
8
  /**
@@ -6517,6 +6517,10 @@ export declare interface PlayerConfiguration {
6517
6517
  * The vr configuration for the player.
6518
6518
  */
6519
6519
  vr?: VRPlayerConfiguration;
6520
+ /**
6521
+ * The retry configuration for the player.
6522
+ */
6523
+ retryConfiguration?: RetryConfiguration;
6520
6524
  }
6521
6525
 
6522
6526
  /**
@@ -7458,6 +7462,28 @@ export declare type ResponseLike = ResponseInit_2;
7458
7462
  declare type ResponseType_2 = 'arraybuffer' | 'json' | 'stream' | 'text';
7459
7463
  export { ResponseType_2 as ResponseType }
7460
7464
 
7465
+ /**
7466
+ * Object containing values used for the player's retry mechanisms.
7467
+ */
7468
+ declare interface RetryConfiguration {
7469
+ /**
7470
+ * The maximum amount of retries before the player throws a fatal error.
7471
+ * Defaults to `Infinity`.
7472
+ */
7473
+ maxRetries?: number;
7474
+ /**
7475
+ * The initial delay in milliseconds before a retry request occurs.
7476
+ * Exponential backoff will be applied on this value.
7477
+ * Defaults to `200`.
7478
+ */
7479
+ minimumBackoff?: number;
7480
+ /**
7481
+ * The maximum amount of delay in milliseconds between retry requests.
7482
+ * Defaults to `30000`.
7483
+ */
7484
+ maximumBackoff?: number;
7485
+ }
7486
+
7461
7487
  /**
7462
7488
  * The strategy for period switches (see {@link DashPlaybackConfiguration.useSeamlessPeriodSwitch}), represented by a value from the following list:
7463
7489
  * <br/> - `'auto'`: The player uses seamless switches if the platform supports it, and hard switches otherwise.