@signalapp/ringrtc 2.51.0 → 2.52.0

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-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.51.0, protobuf 2.51.0, ringrtc 2.51.0, regex-aot 0.1.0, partial-default-derive 0.1.0
672
+ ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.52.0, protobuf 2.52.0, ringrtc 2.52.0, regex-aot 0.1.0, partial-default-derive 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -247,6 +247,8 @@ export declare class RingRTCType {
247
247
  groupCallRingUpdate(groupId: GroupId, ringId: bigint, sender: GroupCallUserId, state: RingUpdate): void;
248
248
  handleRtcStatsReportComplete(reportJson: string): void;
249
249
  handleSpeechEvent(clientId: GroupCallClientId, event: SpeechEvent): void;
250
+ onRemoteMute(clientId: GroupCallClientId, demuxId: number): void;
251
+ onObservedRemoteMute(clientId: GroupCallClientId, sourceDemuxId: number, targetDemuxId: number): void;
250
252
  onLogMessage(level: number, fileName: string, line: number, message: string): void;
251
253
  logError(message: string): void;
252
254
  logWarn(message: string): void;
@@ -509,6 +511,8 @@ export interface GroupCallObserver {
509
511
  onPeekChanged(groupCall: GroupCall): void;
510
512
  onEnded(groupCall: GroupCall, reason: GroupCallEndReason): void;
511
513
  onSpeechEvent(groupCall: GroupCall, event: SpeechEvent): void;
514
+ onRemoteMute(groupCall: GroupCall, demuxId: number): void;
515
+ onObservedRemoteMute(groupCall: GroupCall, sourceDemuxId: number, targetDemuxId: number): void;
512
516
  }
513
517
  export declare class GroupCall {
514
518
  private readonly _kind;
@@ -530,6 +534,8 @@ export declare class GroupCall {
530
534
  getPeekInfo(): PeekInfo | undefined;
531
535
  getCallId(): CallId | undefined;
532
536
  setOutgoingAudioMuted(muted: boolean): void;
537
+ setOutgoingAudioMutedRemotely(source: number): void;
538
+ sendRemoteMuteRequest(target: number): void;
533
539
  react(value: string): void;
534
540
  raiseHand(raise: boolean): void;
535
541
  setOutgoingVideoMuted(muted: boolean): void;
@@ -562,6 +568,8 @@ export declare class GroupCall {
562
568
  setRemoteAspectRatio(remoteDemuxId: number, aspectRatio: number): void;
563
569
  setRtcStatsInterval(intervalMillis: number): void;
564
570
  handleSpeechEvent(event: SpeechEvent): void;
571
+ onRemoteMute(demuxId: number): void;
572
+ onObservedRemoteMute(sourceDemuxId: number, targetDemuxId: number): void;
565
573
  }
566
574
  declare class GroupCallVideoFrameSource {
567
575
  private readonly _callManager;
@@ -670,6 +678,8 @@ export interface CallManager {
670
678
  leave(clientId: GroupCallClientId): void;
671
679
  disconnect(clientId: GroupCallClientId): void;
672
680
  setOutgoingAudioMuted(clientId: GroupCallClientId, muted: boolean): void;
681
+ setOutgoingAudioMutedRemotely(clientId: GroupCallClientId, source: number): void;
682
+ sendRemoteMuteRequest(clientId: GroupCallClientId, target: number): void;
673
683
  setOutgoingVideoMuted(clientId: GroupCallClientId, muted: boolean): void;
674
684
  setPresenting(clientId: GroupCallClientId, presenting: boolean): void;
675
685
  setOutgoingGroupCallVideoIsScreenShare(clientId: GroupCallClientId, isScreenShare: boolean): void;
@@ -113,6 +113,10 @@ NativeCallManager.prototype.groupReact = Native_1.default.cm_groupReact;
113
113
  NativeCallManager.prototype.groupRaiseHand = Native_1.default.cm_groupRaiseHand;
114
114
  NativeCallManager.prototype.setOutgoingAudioMuted =
115
115
  Native_1.default.cm_setOutgoingAudioMuted;
116
+ NativeCallManager.prototype.setOutgoingAudioMutedRemotely =
117
+ Native_1.default.cm_setOutgoingAudioMutedRemotely;
118
+ NativeCallManager.prototype.sendRemoteMuteRequest =
119
+ Native_1.default.cm_sendRemoteMuteRequest;
116
120
  NativeCallManager.prototype.setOutgoingVideoMuted =
117
121
  Native_1.default.cm_setOutgoingVideoMuted;
118
122
  NativeCallManager.prototype.setOutgoingGroupCallVideoIsScreenShare =
@@ -973,6 +977,24 @@ class RingRTCType {
973
977
  });
974
978
  }
975
979
  // Called by Rust
980
+ onRemoteMute(clientId, demuxId) {
981
+ sillyDeadlockProtection(() => {
982
+ const groupCall = this._groupCallByClientId.get(clientId);
983
+ if (groupCall) {
984
+ groupCall.onRemoteMute(demuxId);
985
+ }
986
+ });
987
+ }
988
+ // Called by Rust.
989
+ onObservedRemoteMute(clientId, sourceDemuxId, targetDemuxId) {
990
+ sillyDeadlockProtection(() => {
991
+ const groupCall = this._groupCallByClientId.get(clientId);
992
+ if (groupCall) {
993
+ groupCall.onObservedRemoteMute(sourceDemuxId, targetDemuxId);
994
+ }
995
+ });
996
+ }
997
+ // Called by Rust
976
998
  onLogMessage(level, fileName, line, message) {
977
999
  if (this.handleLogMessage) {
978
1000
  this.handleLogMessage(level, fileName, line, message);
@@ -1521,6 +1543,16 @@ class GroupCall {
1521
1543
  this._observer.onLocalDeviceStateChanged(this);
1522
1544
  }
1523
1545
  // Called by UI
1546
+ setOutgoingAudioMutedRemotely(source) {
1547
+ this._localDeviceState.audioMuted = true;
1548
+ this._callManager.setOutgoingAudioMutedRemotely(this._clientId, source);
1549
+ this._observer.onLocalDeviceStateChanged(this);
1550
+ }
1551
+ // Called by UI
1552
+ sendRemoteMuteRequest(target) {
1553
+ this._callManager.sendRemoteMuteRequest(this._clientId, target);
1554
+ }
1555
+ // Called by UI
1524
1556
  react(value) {
1525
1557
  this._callManager.groupReact(this._clientId, value);
1526
1558
  }
@@ -1678,6 +1710,12 @@ class GroupCall {
1678
1710
  handleSpeechEvent(event) {
1679
1711
  this._observer.onSpeechEvent(this, event);
1680
1712
  }
1713
+ onRemoteMute(demuxId) {
1714
+ this._observer.onRemoteMute(this, demuxId);
1715
+ }
1716
+ onObservedRemoteMute(sourceDemuxId, targetDemuxId) {
1717
+ this._observer.onObservedRemoteMute(this, sourceDemuxId, targetDemuxId);
1718
+ }
1681
1719
  }
1682
1720
  exports.GroupCall = GroupCall;
1683
1721
  class GroupCallVideoFrameSource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.51.0",
3
+ "version": "2.52.0",
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": "77621836d3b47b8a4a5ba81941b9bdf1f27e9b70187ca2b00e8e467d0292f137"
28
+ "prebuildChecksum": "18d020c369ac1126df868d297b535518f6731c43d750c6bd3d9268044f23b855"
29
29
  },
30
30
  "author": "",
31
31
  "license": "AGPL-3.0-only",