@vindral/web-sdk 4.1.1 → 4.1.2-10-g30d188ef

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/legacy.d.ts CHANGED
@@ -307,6 +307,20 @@ export interface DrmOptions {
307
307
  * Query parameters to be added to requests to license servers
308
308
  */
309
309
  queryParams?: Record<string, string>;
310
+ /**
311
+ * Widevine options to override default behaviour
312
+ */
313
+ widevine?: {
314
+ videoRobustness?: string[];
315
+ audioRobustness?: string[];
316
+ };
317
+ /**
318
+ * Playready options to override default behaviour
319
+ */
320
+ playready?: {
321
+ videoRobustness?: string[];
322
+ audioRobustness?: string[];
323
+ };
310
324
  }
311
325
  /**
312
326
  * Type of media.
@@ -1104,11 +1118,20 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1104
1118
  */
1105
1119
  get channelCurrentTime(): number;
1106
1120
  /**
1107
- * The current target buffer time in milliseconds
1121
+ * The current target buffer time in milliseconds.
1122
+ *
1123
+ * Initially, this will always be equal to `minBufferTime`.
1124
+ * Only when using a separate `maxBufferTime`, the `targetBufferTime` will be able to vary between min and max.
1125
+ *
1108
1126
  */
1109
1127
  get targetBufferTime(): number;
1110
1128
  /**
1111
- * Set the current target buffer time in milliseconds
1129
+ * Set the current target buffer time in milliseconds.
1130
+ *
1131
+ * Note that setting this will not respect min/max buffer time values.
1132
+ * For instance with `{ minBufferTime: 500, maxBufferTime: 3000 }, you can still set `targetBufferTime` to 100 ms.`
1133
+ * The dynamic buffer will still work in respect to the originally set values when needed. Therefore we recommend
1134
+ * setting targetBufferTime within that range for consistancy if using both min/max.
1112
1135
  */
1113
1136
  set targetBufferTime(bufferTimeMs: number);
1114
1137
  /**
@@ -1676,6 +1699,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
1676
1699
  private hlsUrl;
1677
1700
  private element;
1678
1701
  private connectingTimeout?;
1702
+ private castingAvailable;
1679
1703
  constructor(config: AirPlayConfig);
1680
1704
  /**
1681
1705
  * True if the instance is casting right now.
@@ -1687,8 +1711,9 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
1687
1711
  set channelId(channelId: string);
1688
1712
  /**
1689
1713
  * Update authentication token on an already established and authenticated connection.
1714
+ * Note: When casting to AirPlay, this will interrupt the current session to apply the new token.
1690
1715
  */
1691
- updateAuthenticationToken: (_token: string) => void;
1716
+ updateAuthenticationToken: (token: string) => void;
1692
1717
  /**
1693
1718
  * Fully unloads the instance. This disconnects the current listeners.
1694
1719
  */
@@ -1703,6 +1728,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
1703
1728
  static isAirPlaySupported(): boolean;
1704
1729
  private onAirPlayAvailable;
1705
1730
  private onAirPlayPlaybackChanged;
1731
+ private getHlsUrl;
1706
1732
  private checkHlsUrl;
1707
1733
  }
1708
1734
  /**
@@ -1801,10 +1827,11 @@ export interface PlayerOptions {
1801
1827
  * Represents a Vindral player
1802
1828
  *
1803
1829
  * ```typescript
1804
- * // minimal configuration of a Vindral web player
1830
+ * // example configuration of a Vindral web player
1805
1831
  * const instance = new Player({
1806
1832
  * url: "https://lb.cdn.vindral.com",
1807
1833
  * channelId: "vindral_demo1_ci_099ee1fa-80f3-455e-aa23-3d184e93e04f",
1834
+ * minBufferTime: 1000,
1808
1835
  * })
1809
1836
  * ```
1810
1837
  */