connectycube-web-samples icon indicating copy to clipboard operation
connectycube-web-samples copied to clipboard

Listen to Other Party Mute/Unmute Events

Open Abdulrahmanh995 opened this issue 3 years ago • 2 comments

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.

Abdulrahmanh995 avatar Mar 20 '21 06:03 Abdulrahmanh995

@Abdulrahmanh95 We suggest to use a system message to send a signal via chat in real-time.

ccvlad avatar Mar 29 '21 10:03 ccvlad

@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?

Abdulrahmanh995 avatar Mar 31 '21 13:03 Abdulrahmanh995