@stinkycomputing/web-live-player 0.1.14 → 0.1.16

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.
@@ -50,6 +50,7 @@ export declare class FileVideoPlayer extends BasePlayer<FilePlayerState> {
50
50
  private audioPlayer;
51
51
  private ownsAudioContext;
52
52
  private audioInitialized;
53
+ private volume;
53
54
  private fileInfo;
54
55
  private frameBuffer;
55
56
  private minBufferSize;
@@ -100,6 +101,9 @@ export declare class FileVideoPlayer extends BasePlayer<FilePlayerState> {
100
101
  setDebugLogging(enabled: boolean): void;
101
102
  /**
102
103
  * Set audio volume (0-1)
104
+ *
105
+ * The value is remembered and re-applied whenever the audio decoder is
106
+ * (re)initialized, so calls made before the decoder is ready are not lost.
103
107
  */
104
108
  setVolume(volume: number): void;
105
109
  /**
@@ -97,6 +97,7 @@ export declare class LiveVideoPlayer extends BasePlayer<PlayerState> {
97
97
  private audioPlayer;
98
98
  private ownsAudioContext;
99
99
  private audioCodecData;
100
+ private volume;
100
101
  private arrivalTimes;
101
102
  private keyframeStatus;
102
103
  private videoBytesReceived;
@@ -112,6 +113,10 @@ export declare class LiveVideoPlayer extends BasePlayer<PlayerState> {
112
113
  setDebugLogging(enabled: boolean): void;
113
114
  /**
114
115
  * Set audio volume (0-1)
116
+ *
117
+ * The value is remembered and re-applied whenever a new audio player is
118
+ * created, so calls made before audio arrives (or across codec changes)
119
+ * are not lost.
115
120
  */
116
121
  setVolume(volume: number): void;
117
122
  /**
@@ -45,6 +45,7 @@ export declare class WebSocketSource extends BaseStreamSource {
45
45
  private currentTrackName;
46
46
  private reconnectTimeout;
47
47
  private disposed;
48
+ private clearWebSocketHandlers;
48
49
  constructor(config?: WebSocketSourceConfig);
49
50
  /**
50
51
  * Get the WebSocket URL based on configuration