startLocalRecord method

Future<bool> startLocalRecord(
  1. String filePath
)

Start local recording of video stream

Parameters:

  • filePath: Local file path to save recording

Returns true if recording started successfully

Implementation

Future<bool> startLocalRecord(String filePath) async {
  try {
    final bool result = await _enhancedChannel.invokeMethod(
      'startLocalRecord',
      {'filePath': filePath},
    ) ?? false;
    return result;
  } catch (e) {
    ezvizLog('Error starting local record: $e');
    return false;
  }
}