openvidu-browser: fix hark events reapplication after Publisher#replaceTrack
This commit is contained in:
parent
b99f387b4e
commit
ce230f059a
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user