DVFakeMediaPlayerBackend class final

A player backend that records what it was asked and emits what it is told.

Implemented types

Constructors

DVFakeMediaPlayerBackend({DVMediaBackendCapabilities capabilities = const DVMediaBackendCapabilities()})

Properties

calls → List<String>
final
capabilities → DVMediaBackendCapabilities
final
disposeCount ↔ int
getter/setter pair
disposed → bool
no setter
events → Stream<DVMediaBackendEvent>
What happened. Subscribed once per attach; cancelled on dispose.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
hasListener → bool
Whether anything is still subscribed to events.
no setter
licenses → List<Object?>
final
opened → List<DVMediaSource>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seeks → List<(Duration, int)>
final
volumes → List<double>
final

Methods

dispose() → Future<void>
Releases the decoder, the surface and anything else the player holds.
override
emit(DVMediaBackendEvent event) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(DVMediaSource source, {Object? license}) → Future<void>
Loads source. license is whatever a DVDrmAdapter produced.
override
pause() → Future<void>
override
play() → Future<void>
override
seek(Duration position, int generation) → Future<void>
Moves to position. generation is echoed back on the DVMediaSeekCompleted that confirms it and on every DVMediaPosition after, which is how a report that was already in flight when the seek was issued is told apart from one that describes where playback now is.
override
setVolume(double volume) → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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