Documentation

Support

Vivox Core SDK

Vivox Core SDK

Mute a local microphone device

How to mute or unmute a local microphone device.
Read time 1 minuteLast updated 20 hours ago

To mute or unmute a local microphone device, use the
vx_req_connector_mute_local_mic
request.
vx_req_connector_mute_local_mic_t* reqStruct;vx_req_connector_mute_local_mic_create(&reqStruct);reqStruct->connector_handle = vx_strdup(“connector handle”);reqStruct->mute_level = 1; // 1 - mute, 0 - unmutereqStruct->account_handle = vx_strdup(“account handle”); // OPTIONALint ret = vx_issue_request3((vx_req_base_t*) reqStruct);
The
account_handle
in this request is an optional parameter, and is similar to what is used when muting a local speaker device. This parameter specifies the account handle of the user whose microphone is to be muted or unmuted, which is the account handle that is passed in to a
vx_req_account_anonymous_login
. If this is left unset, then the default account handle is used. Generally, there is only one account handle, except for couch co-op.