connectycube-web-samples
connectycube-web-samples copied to clipboard
Listen to Other Party Mute/Unmute Events
Hi
How can video call other party listen to my mute/unmute events?
So when I mute the video, the other party can shows that I've disabled the video or the audio for example.
@Abdulrahmanh95 We suggest to use a system message to send a signal via chat in real-time.
@ccvlad
ConnectyCube.chat.onSystemMessageListener
is never being invoked.
I'm registering this callback after initializing the chat
await ConnectyCube.chat.connect({ userId: this.userId, password: this.currentSessionToken, });
ConnectyCube.chat.onSystemMessageListener = (msg) => { console.log('ConnectyCube.chat.onSystemMessageListener msg', msg); debugger; };
Is there any working example for system messages?