recordVideo method

Future<bool?> recordVideo({
  1. double? maxVideoDuration,
  2. String? url,
  3. bool? enableAudio,
  4. dynamic onVideoRecordingFinished(
    1. CameraMacOSFile?,
    2. CameraMacOSException?
    )?,
})

Call this method to start a video recording.

Implementation

Future<bool?> recordVideo({
  /// Expressed in seconds
  double? maxVideoDuration,

  /// A URL location to save the video. Default is Library/Cache directory of the application.
  String? url,

  /// Enable audio (this flag overrides the initialization setting)
  bool? enableAudio,

  /// Called only when the video has reached the max duration pointed by maxVideoDuration
  Function(CameraMacOSFile?, CameraMacOSException?)? onVideoRecordingFinished,
}) {
  return _platformInstance.startVideoRecording(
    maxVideoDuration: maxVideoDuration,
    enableAudio: enableAudio,
    url: url,
    onVideoRecordingFinished: onVideoRecordingFinished,
  );
}