@vindral/web-sdk 4.1.2 → 4.1.3

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/api-client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as o } from "./hRzek83o.js";
1
+ import { A as o } from "./Bs3ZbgIy.js";
2
2
  export {
3
3
  o as ApiClient
4
4
  };
package/core.d.ts CHANGED
@@ -1103,11 +1103,20 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1103
1103
  */
1104
1104
  get channelCurrentTime(): number;
1105
1105
  /**
1106
- * The current target buffer time in milliseconds
1106
+ * The current target buffer time in milliseconds.
1107
+ *
1108
+ * Initially, this will always be equal to `minBufferTime`.
1109
+ * Only when using a separate `maxBufferTime`, the `targetBufferTime` will be able to vary between min and max.
1110
+ *
1107
1111
  */
1108
1112
  get targetBufferTime(): number;
1109
1113
  /**
1110
- * Set the current target buffer time in milliseconds
1114
+ * Set the current target buffer time in milliseconds.
1115
+ *
1116
+ * Note that setting this will not respect min/max buffer time values.
1117
+ * For instance with `{ minBufferTime: 500, maxBufferTime: 3000 }, you can still set `targetBufferTime` to 100 ms.`
1118
+ * The dynamic buffer will still work in respect to the originally set values when needed. Therefore we recommend
1119
+ * setting targetBufferTime within that range for consistancy if using both min/max.
1111
1120
  */
1112
1121
  set targetBufferTime(bufferTimeMs: number);
1113
1122
  /**
package/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as C, c as I, e as _, f as O, C as D, D as T, I as a, N as A, V as s, g as r } from "./ZD9OGvpf.js";
1
+ import { b as C, c as I, e as _, f as O, C as D, D as T, I as a, N as A, V as s, g as r } from "./DykhWWFG.js";
2
2
  export {
3
3
  C as AUTHENTICATION_EXPIRED_CODE,
4
4
  I as AUTHENTICATION_FAILED_CODE,
package/legacy.d.ts CHANGED
@@ -1118,11 +1118,20 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1118
1118
  */
1119
1119
  get channelCurrentTime(): number;
1120
1120
  /**
1121
- * 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
+ *
1122
1126
  */
1123
1127
  get targetBufferTime(): number;
1124
1128
  /**
1125
- * 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.
1126
1135
  */
1127
1136
  set targetBufferTime(bufferTimeMs: number);
1128
1137
  /**
@@ -1818,10 +1827,11 @@ export interface PlayerOptions {
1818
1827
  * Represents a Vindral player
1819
1828
  *
1820
1829
  * ```typescript
1821
- * // minimal configuration of a Vindral web player
1830
+ * // example configuration of a Vindral web player
1822
1831
  * const instance = new Player({
1823
1832
  * url: "https://lb.cdn.vindral.com",
1824
1833
  * channelId: "vindral_demo1_ci_099ee1fa-80f3-455e-aa23-3d184e93e04f",
1834
+ * minBufferTime: 1000,
1825
1835
  * })
1826
1836
  * ```
1827
1837
  */