openvidu-browser: fix hark events reapplication after Publisher#replaceTrack

pull/743/head
pabloFuente 2022-07-07 16:49:17 +02:00
parent b99f387b4e
commit ce230f059a
1 changed files with 3 additions and 0 deletions

View File

@ -787,6 +787,9 @@ export class Publisher extends StreamManager {
this.openvidu.sendTrackChangedEvent(this,'trackReplaced', trackInfo.oldLabel, trackInfo.newLabel, 'audioActive'); this.openvidu.sendTrackChangedEvent(this,'trackReplaced', trackInfo.oldLabel, trackInfo.newLabel, 'audioActive');
} }
if (track.kind === 'audio') { if (track.kind === 'audio') {
this.stream.disableHarkSpeakingEvent(false);
this.stream.disableHarkStoppedSpeakingEvent(false);
this.stream.disableHarkVolumeChangeEvent(false);
this.stream.initHarkEvents(); this.stream.initHarkEvents();
} }
} }