Documentation

Support

Vivox Core SDK

Vivox Core SDK

Mute a local speaker device

How to mute or unmute the local speaker.
Read time 1 minuteLast updated 20 hours ago

To mute or unmute a local speaker device, use the
vx_req_connector_mute_local_speaker
request.
vx_req_connector_mute_local_speaker_t* reqStruct;vx_req_connector_mute_local_speaker_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. Generally, there is only one account handle. If a speaker device is shared between multiple users (for example, in couch co-op), then the account handle specifies the account handle of the user whose speaker device is to be muted or unmuted. This 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.