disableCam method

Future<void> disableCam()

Disables the participant’s camera.

  • Calling this method stops the participant’s camera stream. Once the camera is disabled, all participants in the room will receive a Events.streamDisabled event with the corresponding video RTCStream object.

Returns

  • A Future<void> that completes once the native SDK accepts the request, or throws a VideoSDKError carrying its code and name.

Example

// Disable the participant's camera
await participant.disableCam();

Implementation

Future<void> disableCam() => _disableCam();