@vindral/web-sdk 3.4.3 → 3.4.4

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/index.d.ts CHANGED
@@ -1,18 +1,5 @@
1
1
  type AudioCodec = "aac" | "opus" | "mp3";
2
2
  type VideoCodec = "h264" | "av1";
3
- /**
4
- * Log level
5
- * @enum
6
- */
7
- export declare const Level: {
8
- readonly CRITICAL: "critical";
9
- readonly ERROR: "error";
10
- readonly WARN: "warn";
11
- readonly INFO: "info";
12
- readonly DEBUG: "debug";
13
- readonly TRACE: "trace";
14
- };
15
- export type Level = (typeof Level)[keyof typeof Level];
16
3
  /**
17
4
  * Represents a timed metadata event
18
5
  */
@@ -54,6 +41,23 @@ declare class Emitter<TEvents, TEmits = TEvents, ArgLessEvents extends VoidKeys<
54
41
  reset(): void;
55
42
  private add;
56
43
  }
44
+ declare const Levels: readonly [
45
+ "off",
46
+ "error",
47
+ "warn",
48
+ "info",
49
+ "debug",
50
+ "trace"
51
+ ];
52
+ export type Level = (typeof Levels)[number];
53
+ export declare const Level: {
54
+ ERROR: "error";
55
+ WARN: "warn";
56
+ INFO: "info";
57
+ DEBUG: "debug";
58
+ TRACE: "trace";
59
+ OFF: "off";
60
+ };
57
61
  interface MinMaxAverage {
58
62
  last: number;
59
63
  /**
@@ -665,7 +669,6 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
665
669
  private hlsUrl;
666
670
  private element;
667
671
  private connectingTimeout?;
668
- private browser;
669
672
  constructor(config: AirPlayConfig);
670
673
  /**
671
674
  * True if the instance is casting right now.
@@ -693,6 +696,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
693
696
  static isAirPlaySupported(): boolean;
694
697
  private onAirPlayAvailable;
695
698
  private onAirPlayPlaybackChanged;
699
+ private checkHlsUrl;
696
700
  }
697
701
  type PlaybackState = "buffering" | "playing" | "paused";
698
702
  type BufferStateEvent = "filled" | "drained";
@@ -870,7 +874,7 @@ declare const defaultOptions: {
870
874
  muted: boolean;
871
875
  minBufferTime: number;
872
876
  maxBufferTime: number;
873
- logLevel: Level;
877
+ logLevel: "off" | "error" | "warn" | "info" | "debug" | "trace";
874
878
  maxSize: Size;
875
879
  maxVideoBitRate: number;
876
880
  maxAudioBitRate: number;
@@ -1444,6 +1448,10 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1444
1448
  * The ranges are specified in milliseconds.
1445
1449
  */
1446
1450
  get audioBufferedRanges(): ReadonlyArray<TimeRange>;
1451
+ /**
1452
+ * The API client for calls to the public available endpoints of the Vindral Live CDN.
1453
+ */
1454
+ getApiClient(): ApiClient;
1447
1455
  get lastBufferEvent(): Readonly<BufferStateEvent>;
1448
1456
  get activeRatios(): Map<string, number>;
1449
1457
  get bufferingRatios(): Map<string, number>;