startRecording method

Future<bool> startRecording()

开始录像

Implementation

Future<bool> startRecording() async {
  try {
    return await _channel.invokeMethod('startRecording');
  } catch (e) {
    print('Error starting recording: $e');
    return false;
  }
}