CaptureFileOutput class abstract

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.

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

Constructors

CaptureFileOutput()

Properties

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

Methods

connectionWithMediaType(String mediaType) Future<CaptureConnection?>
Returns the first connection in the connections array with an input port of a specified media type.
inherited
isRecording() Future<bool>
Indicates whether recording is in progress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
inherited

Operators

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