Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Common Configuration Management Objects/ Configuring Device Statuses After a Meeting Call Is Answered
Updated on 2024-07-30 GMT+08:00

Configuring Device Statuses After a Meeting Call Is Answered

Function

This API is used to set the status of devices, including the microphone and camera, when a meeting call is answered.

Function Prototype

setDeviceConfigForConfIncoming(deviceConfig: DeviceConfig, onSetDeviceConfigForConfIncomingResult?: (ret: SDKERR, reason: string) => void): voidsetDeviceConfigForConfIncoming(deviceConfig: DeviceConfig, onSetDeviceConfigForConfIncomingResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
deviceConfig Yes DeviceConfig Device configuration.
onSetDeviceConfigForConfIncomingResult Yes (ret: SDKERR, reason: string) => void Callback of setting the microphone or camera status when a meeting call is answered.
Table 2 DeviceConfig
Parameter Mandatory Type Description
isMicOn No boolean Whether to enable the microphone.
isCameraOn No boolean Whether to enable the camera.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 3 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.