@ikonai/sdk 1.0.78 → 1.0.80

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.
@@ -129,6 +129,7 @@ export declare class IkonAudioCapture {
129
129
  private nextTrackId;
130
130
  private captures;
131
131
  private pendingCaptures;
132
+ private activeWebRtcCaptureInvalidate;
132
133
  private readonly config;
133
134
  private deviceChangeHandler;
134
135
  private audioContextStateHandler;
@@ -219,6 +220,13 @@ export declare class IkonAudioCapture {
219
220
  * De-duplicates concurrent loading attempts for the same context.
220
221
  */
221
222
  private ensureWorklet;
223
+ /**
224
+ * Called by the client when the WebRTC transport is lost mid-session. The active WebRTC
225
+ * capture handle can no longer send or end segments (its signaling object is gone), so mark
226
+ * it stopped and fire its onStopped callback — owners (e.g. CaptureButton) then drop the
227
+ * handle, and the next startMic re-evaluates the transport and takes the protocol channel.
228
+ */
229
+ handleWebRtcTransportLost(): void;
222
230
  startMic(request?: IkonAudioCaptureRequest): Promise<IkonAudioCaptureHandle>;
223
231
  stop(captureId: string): Promise<boolean>;
224
232
  startSegment(captureId: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",