DVMediaCapture class final

The capture runtime behind DV.Platform.media.

One recording at a time: a second is refused with DVCaptureBusy rather than handed a device the first still holds.

Constructors

DVMediaCapture({required DVCaptureCapabilities capabilities, required DVCaptureBackend backend(), required DVCapturePermissions permissions, required DVCaptureFiles files, DVLifecycleSignal<DVAppLifecycle>? lifecycle, DVMediaTimers timers = const DVSystemMediaTimers(), DVMediaDiagnosticSink? diagnostics})

Properties

active → DVCaptureSession?
The recording holding the device, if any.
no setter
backendFactory → DVCaptureBackend Function()
Makes the device for one recording. Construction must open nothing; the session calls start once permission is granted, and disposes it when the recording ends.
final
capabilities → DVCaptureCapabilities
What this target's capture backend reports it can record.
final
diagnostics → DVMediaDiagnosticSink
final
files → DVCaptureFiles
final
hashCode → int
The hash code for this object.
no setterinherited
lifecycle → DVLifecycleSignal<DVAppLifecycle>
final
permissions → DVCapturePermissions
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timers → DVMediaTimers
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordAudio({DVAudioFormat format = DVAudioFormat.aac, Duration? maxDuration}) → DVCaptureSession
recordVideo({DVVideoQuality quality = DVVideoQuality.hd720, Duration? maxDuration}) → DVCaptureSession
toString() → String
A string representation of this object.
inherited

Operators

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