@node-webrtc-rust/bindings 0.6.22 → 0.6.24

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.
Files changed (2) hide show
  1. package/index.d.ts +5 -0
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -288,6 +288,11 @@ export declare class JsMediaStream {
288
288
  /** Local audio track for sending media to a peer connection. */
289
289
  export declare class JsLocalAudioTrack {
290
290
  constructor(id: string, streamId: string)
291
+ /**
292
+ * Registers a non-blocking listener for PCM written via {@link writeSample} or VoiceAgent TTS.
293
+ * Pass `null` to clear. Used by load-test stereo WAV capture (native TTS bypasses JS patches).
294
+ */
295
+ setWriteSampleTee(callback?: (...args: any[]) => any | undefined | null): void
291
296
  get id(): string
292
297
  get kind(): string
293
298
  get streamId(): string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-webrtc-rust/bindings",
3
- "version": "0.6.22",
3
+ "version": "0.6.24",
4
4
  "description": "NAPI-RS native bindings for node-webrtc-rust — WebRTC peer connections, data channels, and conference audio mixing",
5
5
  "keywords": [
6
6
  "webrtc",
@@ -58,12 +58,12 @@
58
58
  "@napi-rs/cli": "^2.18.0"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@node-webrtc-rust/bindings-win32-x64-msvc": "0.6.22",
62
- "@node-webrtc-rust/bindings-darwin-x64": "0.6.22",
63
- "@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.22",
64
- "@node-webrtc-rust/bindings-darwin-arm64": "0.6.22",
65
- "@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.22",
66
- "@node-webrtc-rust/bindings-linux-x64-musl": "0.6.22"
61
+ "@node-webrtc-rust/bindings-win32-x64-msvc": "0.6.24",
62
+ "@node-webrtc-rust/bindings-darwin-x64": "0.6.24",
63
+ "@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.24",
64
+ "@node-webrtc-rust/bindings-darwin-arm64": "0.6.24",
65
+ "@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.24",
66
+ "@node-webrtc-rust/bindings-linux-x64-musl": "0.6.24"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=18"