Pause voice broadcast on calls (#9623)

This commit is contained in:
Michael Weimann
2022-11-28 11:43:59 +00:00
committed by GitHub
parent ad190b1dcc
commit e38c59c535
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -283,8 +283,8 @@ export class StopGapWidget extends EventEmitter {
this.messaging.on("capabilitiesNotified", () => this.emit("capabilitiesNotified"));
this.messaging.on(`action:${WidgetApiFromWidgetAction.OpenModalWidget}`, this.onOpenModal);
this.messaging.on(`action:${ElementWidgetActions.JoinCall}`, () => {
// stop voice broadcast recording when any widget sends a "join"
VoiceBroadcastRecordingsStore.instance().getCurrent()?.stop();
// pause voice broadcast recording when any widget sends a "join"
VoiceBroadcastRecordingsStore.instance().getCurrent()?.pause();
});
// Always attach a handler for ViewRoom, but permission check it internally