Skip to main content
Version: 0.1.x

Mic Controls

Whenever any participant wants to start / stop broadcasting their audio to other participant in meeting, they can simply do it with VideoSDK Meeting.

This guide will provide an overview of how to use enable and disable Mic in a meeting.

  1. Enable Mic - By using unmuteMic() function, a participant can publish audio to other participants.
  2. Disable Mic - By using muteMic() function, a participant can stop publishing audio to other participants.
  3. Change Mic - By using changeMic() function, a participant can change mic.

Enable, Disable, Change Mic

const onPress = () => {
// Enable Mic in Meeting

// Disable Mic in Meeting

// Change Mic in Meeting
const mics = await meeting?.getMics(); // returns all mics

const { deviceId, label } = mics[0];



Event associated with unmuteMic():

Event associated with muteMic():

function onStreamEnabled(stream) {
if(stream.kind === 'audio'){
console.log("Audio Stream On: onStreamEnabled", stream);

function onStreamDisabled(stream) {
if(stream.kind === 'audio'){
console.log("Audio Stream Off: onStreamDisabled", stream);

const {
} = useParticipant(participantId,{