setNextOutputFilePath method

Future<void> setNextOutputFilePath(
  1. String path
)

Sets the next output file to be used when the maximum filesize is reached on the prior output setOutputFilePath or setNextOutputFilePath.

File should be seekable. After setting the next output file, application should not use the file until stop. Application must call this after receiving on the OnInfoListener a "what" code of infoMaxFilesizeApproaching and before receiving a "what" code of infoMaxFilesizeReached. The file is not used until switching to that output. Application will receive infoNextOutputFileStarted when the next output file is used. Application will not be able to set a new output file if the previous one has not been used. Application is responsible for cleaning up unused files after stop is called.

Throws PlatformException if called before prepare, used on Android versions < Build.VERSION_CODES.O, or operation fails.

Implementation

Future<void> setNextOutputFilePath(String path) {
  return _channel.$setNextOutputFilePath(this, path);
}