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 concrete subclasses of CaptureFileOutput are CaptureMovieFileOutput,
which records media to a QuickTime movie file, and
which writes audio media to a variety of audio file formats.
String mediaType) → Future< CaptureConnection?>
Returns the first connection in the connections array with an input port of a specified media type.
) → Future< bool>
- Indicates whether recording is in progress.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → Future< Uri>
- The file URL of the file to which the receiver is currently recording incoming buffers.
int fileSize) → Future< void>
- Specifies the maximum size, in bytes, of the data that should be recorded by the receiver.
String outputFileURL, CaptureFileOutputRecordingDelegate delegate) → Future< void>
- Starts recording media to the specified output URL.
) → Future< void>
- Tells the receiver to stop recording to the current file.
) → String
A string representation of this object.