disableCam

suspend fun disableCam()

Stops sending video and closes the camera, so the OS camera indicator goes away rather than staying on with a black frame. Other participants see it through ParticipantEventListener.onStreamDisabled.

isCamEnabled turns false as soon as the call starts.

See also

Throws

code 3054 (ERROR_ALREADY_IN_REQUESTED_STATE) if the webcam is already off, code 3055 (ERROR_OPERATION_IN_PROGRESS) while another webcam toggle or a changeMode is still running, or code 3066 (ERROR_ACTION_NOT_SUPPORTED_IN_MODE) outside Mode.SEND_AND_RECV.