enableLocalVideo abstract method

Future<void> enableLocalVideo(
  1. bool enabled
)

Enables/Disables the local video capture. This method disables or re-enables the local video capturer, and does not affect receiving the remote video stream. After calling enableVideo , the local video capturer is enabled by default. You can call enableLocalVideo (false) to disable the local video capturer. If you want to re-enable the local video, call enableLocalVideo(true). After the local video capturer is successfully disabled or re-enabled, the SDK triggers the callback on the remote client remoteVideoStateChanged . You can call this method either before or after joining a channel. This method enables the internal engine and is valid after .

Param enabled Whether to enable the local video capture. true: (Default) Enable the local video capture. false: Disables the local video capture. Once the local video is disabled, the remote users can no longer receive the video stream of this user, while this user can still receive the video streams of the other remote users. When set to false, this method does not require a local camera.

Implementation

Future<void> enableLocalVideo(bool enabled);