disableVideo abstract method

Future<void> disableVideo()

Disables the video module.

This method disables the video module. This method sets the internal engine to a disabled state and remains effective after leaving the channel. Calling this method resets the entire engine and may take longer to respond. You can use the following methods to control specific video functions as needed: enableLocalVideo : Whether to enable camera capture and create the local video stream. muteLocalVideoStream : Whether to publish the local video stream. muteRemoteVideoStream : Whether to receive and play the remote video stream. muteAllRemoteVideoStreams : Whether to receive and play all remote video streams.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> disableVideo();