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,
) => _invokeVoid('startVideoRecording', {
  'handle': handle,
  'snapshotOrientation': _orientationArg(snapshotOrientation),
});