startVideoRecording method Null safety

  1. @override
Future<void> startVideoRecording(
  1. int cameraId,
  2. {Duration? maxVideoDuration}

Starts a video recording.

The length of the recording can be limited by specifying the maxVideoDuration. By default no maximum duration is specified, meaning the recording will continue until manually stopped. With maxVideoDuration set the video is returned in a VideoRecordedEvent through the onVideoRecordedEvent stream when the set duration is reached.

This method is deprecated in favour of startVideoCapturing.


Future<void> startVideoRecording(int cameraId, {Duration? maxVideoDuration}) {
  return startVideoCapturing(
      VideoCaptureOptions(cameraId, maxDuration: maxVideoDuration));