DVCaptureSession class final
One recording.
Awaiting it gives the finished DVFile; holding it gives stop, dispose
and the signals. Both, so await DV.Platform.media.recordAudio(...) reads
as the specification writes it and a recording can still be stopped early.
A recording that nothing awaits does not raise an unhandled error when it
is refused or interrupted: state carries that, and the DV-MEDIA-104
diagnostic is still logged.
Properties
-
capturing
→ DVMediaSignal<
bool> -
Whether the device is open. Moved only by what the device reports, so a
recording indicator bound to it cannot say "off" while the microphone is
still open, or "on" before it is.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- request → DVCaptureRequest
-
What was asked for.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ DVMediaSignal<
DVCaptureState> -
no setter
Methods
-
asStream(
) → Stream< DVFile> -
Creates a Stream containing the result of this future.
override
-
catchError(
Function onError, {bool test(Object error)?}) → Future< DVFile> -
Handles errors emitted by this Future.
override
-
dispose(
) → Future< void> - Releases the device and everything else this session holds.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stop(
) → Future< void> - Stops the recording. Completes once the device has confirmed and the session has finished, whatever the outcome.
-
then<
R> (FutureOr< R> onValue(DVFile value), {Function? onError}) → Future<R> -
Register callbacks to be called when this future completes.
override
-
timeout(
Duration timeLimit, {FutureOr< DVFile> onTimeout()?}) → Future<DVFile> -
Stop waiting for this future after
timeLimithas passed.override -
toString(
) → String -
A string representation of this object.
inherited
-
whenComplete(
FutureOr< void> action()) → Future<DVFile> -
Registers a function to be called when this future completes.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited