Reputation: 11
I am developing a video-conferencing application in flutter using mediasoup WebRTC. I can implement producer and consumer mute and unmute audio/video by themself. I would like to implement mute all participants through a host. So Please provide an answer if you have one.
Upvotes: 1
Views: 750
Reputation: 1
I believe you need to do that from the server side - pausing all producers - on an event triggered from a client as follows:
CLIENT: Socket.emit("muteAll");
SERVER: For all producers do: await producer.pause(); // Notify clients and handle UI effects.
Upvotes: 0
Reputation: 160
Yes you can mute all using below properties
mediaStream.getVideoTracks()[0].enabled = !(mediaStream.getVideoTracks()[0].enabled);
Upvotes: 0