prepareForVideoStreaming method

Future<void> prepareForVideoStreaming()

Prepare the capture session for video streaming.

Use of this method is optional, but it may be called for performance reasons on iOS.

Preparing audio can cause a minor delay in the CameraPreview view on iOS. If video streaming is intended, calling this early eliminates this delay that would otherwise be experienced when video streaming is started. This operation is a no-op on Android.

Throws a CameraException if the prepare fails.

Implementation

Future<void> prepareForVideoStreaming() async {
  await _channel.invokeMethod<void>('prepareForVideoStreaming');
}