startPreview method
Starts the local video preview before joining a channel.
Before calling this method, you must:
- Create the RtcLocalView.
- (Android only) See
TextureView
and SurfaceView. - (iOS only) See UIView.
- (Android only) See
- Call the RtcEngine.enableVideo method to enable the video.
Note
- By default, the local preview enables the mirror mode.
- Once you call this method to start the local video preview, if you leave the channel by calling the RtcEngine.leaveChannel method, the local video preview remains until you call the RtcEngine.stopPreview method to disable it.
Implementation
@override
Future<void> startPreview() {
return _invokeMethod('startPreview');
}