enableVideo method
Enables the video module.
You can call this method either before joining a channel or during a call. If you call this method before joining a channel, the service starts in the video mode. If you call this method during an audio call, the audio mode switches to the video mode.
A successful enableVideo method call triggers the RtcEngineEventHandler.userEnableVideo (true) callback on the remote client.
To disable the video, call the RtcEngine.disableVideo 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> enableVideo() {
return _invokeMethod('enableVideo');
}