setDescriptionWhileRecording method

  1. @override
Future<void> setDescriptionWhileRecording(
  1. CameraDescription description
)

Sets the active camera while recording.

On Android, you must start the recording with startVideoCapturing with enablePersistentRecording set to true to avoid cancelling any active recording.

Implementation

@override
Future<void> setDescriptionWhileRecording(
    CameraDescription description) async {
  await _channel.invokeMethod<double>(
    'setDescriptionWhileRecording',
    <String, dynamic>{
      'cameraName': description.name,
    },
  );
}