@signalapp/ringrtc 2.48.1 → 2.48.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.
@@ -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.4, protobuf 2.48.4, ringrtc 2.48.4, regex-aot 0.1.0, partial-default-derive 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -5440,6 +5440,33 @@ simplified BSD license.
5440
5440
  limitations under the License.
5441
5441
 
5442
5442
 
5443
+ Copyright 2015 The Chromium Authors
5444
+
5445
+ Redistribution and use in source and binary forms, with or without
5446
+ modification, are permitted provided that the following conditions are
5447
+ met:
5448
+
5449
+ * Redistributions of source code must retain the above copyright
5450
+ notice, this list of conditions and the following disclaimer.
5451
+ * Redistributions in binary form must reproduce the above
5452
+ copyright notice, this list of conditions and the following disclaimer
5453
+ in the documentation and/or other materials provided with the
5454
+ distribution.
5455
+ * Neither the name of Google LLC nor the names of its
5456
+ contributors may be used to endorse or promote products derived from
5457
+ this software without specific prior written permission.
5458
+
5459
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5460
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5461
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
5462
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
5463
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
5464
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
5465
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
5466
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5467
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5468
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5469
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5443
5470
 
5444
5471
  ```
5445
5472
 
@@ -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.4",
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": "e64ccb9c1614564ccd9e71881ef5d7f2860719db2e1305b7d9440ceb793d3d7e"
29
29
  },
30
30
  "author": "",
31
31
  "license": "AGPL-3.0-only",