I am using openvidu version 2.22.0.
session.on(‘publisherStartSpeaking’, function (event) {
console.log(“Audio Detect” + event.connection.stream.streamId);
let el = document.getElementById(div-remote-video-${event.connection.stream.streamId}
);
el.style.border = ‘solid red’;
});
session.on(‘publisherStopSpeaking’, function (event) {
let el = document.getElementById(div-remote-video-${event.connection.stream.streamId}
);
el.style.border = ‘0’;
});
Implemented as above.
Only the person who entered the room for the first time could receive the event.
Other users do not receive the event.
What’s the problem?