CaptureFileOutput class Null safety

The abstract superclass for capture outputs that can record captured data to a file.

This abstract superclass defines the interface for outputs that record media samples to files. File outputs can start recording to a new file using the startRecordingToOutputFileURL method. On successive invocations of this method on Mac OS X, the output file can by changed dynamically without losing media samples. A file output can stop recording using the stopRecording method. Because files are recorded in the background, applications will need to specify a delegate for each new file so that they can be notified when recorded files are finished.

On Mac OS X, clients can also set a delegate on the file output itself that can be used to control recording along exact media sample boundaries using the CaptureFileOutputDelegate.captureOutput method.

The concrete subclasses of CaptureFileOutput are CaptureMovieFileOutput, which records media to a QuickTime movie file, and CaptureAudioFileOutput, which writes audio media to a variety of audio file formats.

Mixed in types
  • @Reference('av_foundation/av_foundation/CaptureFileOutput')




hashCode int
The hash code for this object.
runtimeType Type
A representation of the runtime type of the object.


connectionWithMediaType(String mediaType) Future<CaptureConnection?>
Returns the first connection in the connections array with an input port of a specified media type.
isRecording() Future<bool>
Indicates whether recording is in progress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
outputFileURL() Future<Uri>
The file URL of the file to which the receiver is currently recording incoming buffers.
setMaxRecordedFileSize(int fileSize) Future<void>
Specifies the maximum size, in bytes, of the data that should be recorded by the receiver.
startRecordingToOutputFileURL(String outputFileURL, CaptureFileOutputRecordingDelegate delegate) Future<void>
Starts recording media to the specified output URL.
stopRecording() Future<void>
Tells the receiver to stop recording to the current file.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.