From ce230f059a9e60b7f425b7030b9c8e11e0b75f95 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 7 Jul 2022 16:49:17 +0200 Subject: [PATCH] openvidu-browser: fix hark events reapplication after Publisher#replaceTrack --- openvidu-browser/src/OpenVidu/Publisher.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openvidu-browser/src/OpenVidu/Publisher.ts b/openvidu-browser/src/OpenVidu/Publisher.ts index 02e36740..d502c2dc 100644 --- a/openvidu-browser/src/OpenVidu/Publisher.ts +++ b/openvidu-browser/src/OpenVidu/Publisher.ts @@ -787,6 +787,9 @@ export class Publisher extends StreamManager { this.openvidu.sendTrackChangedEvent(this,'trackReplaced', trackInfo.oldLabel, trackInfo.newLabel, 'audioActive'); } if (track.kind === 'audio') { + this.stream.disableHarkSpeakingEvent(false); + this.stream.disableHarkStoppedSpeakingEvent(false); + this.stream.disableHarkVolumeChangeEvent(false); this.stream.initHarkEvents(); } }