startVideoRecording method
Start recording. captureOrientation becomes the video file's
rotation transform (iOS: AVAssetWriterInput.transform; Android:
CameraX targetRotation). Defaults to XSensor.orientation —
pass explicitly from tests.
Implementation
Future<void> startVideoRecording({
DeviceOrientation? captureOrientation,
}) async {
final handle = _requireHandle('startVideoRecording');
final orientation = captureOrientation ?? XSensor.orientation;
await XCameraBackend.instance.startVideoRecording(handle, orientation);
value = value.copyWith(isRecordingVideo: true);
}