startPreview method

  1. @override
Future<void> startPreview()

Starts the local video preview before joining a channel.

Before calling this method, you must:

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');
}