Hi Ov,
We are trying to detect the publisher audio.
Event : publisherStartSpeaking ( to detect audio starts)
Scenario:
If in a meeting we are 3 participants when 1st participant speaks it is detecting but when he stops and participant 2nd start speaking it is not detecting properly. still it is showing as participant 1 speaking only. can you please help me on this issue.
Thanks,
Krishna Prasad
Please share something more so we can check
share code snippet
Thanks
Regards
Vipin
Hi Vipin,
This is the code we tried to achieve for detecting publisher audio.
this.session.on(‘publisherStartSpeaking’, (event: PublisherSpeakingEvent) => {
const someoneIsSharingScreen = this.remoteUsersService.someoneIsSharingScreen();
if (!this.oVSessionService.isScreenShareEnabled() && !someoneIsSharingScreen) {
const elem = event.connection.stream.streamManager.videos[0].video;
const element = this.utilsSrv.getHTMLElementByClassName(elem, LayoutType.ROOT_CLASS);
this.resetAllHighlightElements();
this.onToggleVideoHighlight({ element });
}
});
this.session.on('publisherStopSpeaking', (event: PublisherSpeakingEvent) => {
this.resetAllHighlightElements();
});
Regrds,
Krishna Prasad BH.