start method

bool start(
  1. String path
)

Start recording locally at the path specified. "/Users/larry/Movies/larry1.mkv"

Implementation

bool start(String path) {
  if (_output != null) {
    stop();
  }
  DiveSystemLog.message('DiveRecordingOutput.start at path: $path');

  // Create recording service
  _output = obslib.recordingOutputCreate(path: path, outputName: 'tbd', outputType: outputType);
  if (_output == null) {
    DiveSystemLog.error('DiveRecordingOutput.start output create failed');
    return false;
  }

  // Start recording.
  final rv = obslib.outputStart(_output!);
  if (rv) {
    _syncState(_updateState, repeating: true);
  } else {
    DiveSystemLog.error('DiveRecordingOutput.start output start failed');
  }
  return rv;
}