startVideoRecording method

  1. @override
Future<void> startVideoRecording(
  1. int handle,
  2. DeviceOrientation snapshotOrientation
)
override

Begin recording video. snapshotOrientation is baked into the writer track's transform — the file plays back rotated even if the device returns to portrait mid-recording.

Implementation

@override
Future<void> startVideoRecording(
  int handle,
  DeviceOrientation snapshotOrientation,
) async {
  startVideoRecordingCalls.add((
    handle: handle,
    snapshotOrientation: snapshotOrientation,
  ));
  final err = startVideoRecordingError;
  if (err != null) throw err;
}