disableVideo method
Disables the video module.
You can call this method before joining a channel or during a call. If you call this method before joining a channel, the service starts in audio mode. If you call this method during a video call, the video mode switches to the audio mode.
- A successful disableVideo method call triggers the RtcEngineEventHandler.userEnableVideo (false) callback on the remote client.
- To enable the video mode, call the RtcEngine.enableVideo method.
Note
- This method affects the internal engine and can be called after calling the RtcEngine.leaveChannel method. You can call this method either before or after joining a channel.
- This method resets the internal engine and takes some time to take effect. We recommend using the following API methods to control the video engine modules separately:
- RtcEngine.enableLocalVideo: Whether to enable the camera to create the local video stream.
- RtcEngine.muteLocalVideoStream: Whether to publish the local video stream.
- RtcEngine.muteRemoteVideoStream: Whether to subscribe to and play the remote video stream.
- RtcEngine.muteAllRemoteVideoStreams: Whether to subscribe to and play all remote video streams.
Implementation
@override
Future<void> disableVideo() {
return _invokeMethod('disableVideo');
}