chunkDurationSeconds property

int get chunkDurationSeconds

Chunk duration (seconds) used to split recordings.

A value of 0 disables chunking. When enabled the recorder verifies there is enough disk space to store a full chunk before starting. When a chunk finishes the current recording stops; if continuousRecording is true a new recording starts automatically.

Implementation

int get chunkDurationSeconds {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RecorderConfiguration',
    'getChunkDurationSeconds',
  );
  return resultString['result'];
}
set chunkDurationSeconds (int chunkDurationSeconds)

Set the chunk duration (seconds) used to split recordings.

Set to 0 to disable chunking.

Implementation

set chunkDurationSeconds(final int chunkDurationSeconds) {
  objectMethod(
    pointerId,
    'RecorderConfiguration',
    'setChunkDurationSeconds',
    args: chunkDurationSeconds,
  );
}