@signalapp/ringrtc 2.48.1 → 2.48.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.
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
669
669
 
670
670
  ```
671
671
 
672
- ## libsignal-core 0.1.0, mrp 2.48.1, protobuf 2.48.1, ringrtc 2.48.1, regex-aot 0.1.0, partial-default-derive 0.1.0
672
+ ## libsignal-core 0.1.0, mrp 2.48.3, protobuf 2.48.3, ringrtc 2.48.3, regex-aot 0.1.0, partial-default-derive 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -30,6 +30,7 @@ export declare class GumVideoCaptureOptions {
30
30
  preferredDeviceId?: string;
31
31
  screenShareSourceId?: string;
32
32
  mediaStream?: MediaStream;
33
+ onEnded?: () => void;
33
34
  }
34
35
  export declare class GumVideoCapturer {
35
36
  private defaultCaptureOptions;
@@ -233,6 +233,7 @@ class GumVideoCapturer {
233
233
  if (track == undefined || this.spawnedSenderRunning) {
234
234
  return;
235
235
  }
236
+ const captureOptions = this.captureOptions;
236
237
  if (track.readyState === 'ended') {
237
238
  this.stopCapturing();
238
239
  index_1.RingRTC.logError('spawnSender(): Video track ended before spawning sender');
@@ -284,6 +285,7 @@ class GumVideoCapturer {
284
285
  }
285
286
  finally {
286
287
  reader.releaseLock();
288
+ captureOptions?.onEnded?.();
287
289
  }
288
290
  this.spawnedSenderRunning = false;
289
291
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.48.1",
3
+ "version": "2.48.3",
4
4
  "description": "Signal Messenger voice and video calling library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "config": {
27
27
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
28
- "prebuildChecksum": "85ee7fe9cccdf5c8b9f48cfbbc355fc57fc6387c60b41a374f34077cf2a2da91"
28
+ "prebuildChecksum": "efc32f33ac57c31fe49c7cc4caea1921d419bf553ad3a4387eef7d0b20c2aa07"
29
29
  },
30
30
  "author": "",
31
31
  "license": "AGPL-3.0-only",