startVideoRecording method
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.
Implementation
@override
Future<void> startVideoRecording(int cameraId, {Duration? maxVideoDuration}) async {
return startVideoCapturing(VideoCaptureOptions(cameraId, maxDuration: maxVideoDuration));
}