MediaSession class abstract
A media playback the runtime drives from the transport UI.
Constructors
Properties
-
duration
→ Stream<
Duration?> -
Total length once known; null while it is not.
no setter
-
ended
→ Stream<
void> -
Playback reached the end (never fired for a looping session).
no setter
-
errors
→ Stream<
Object> -
Playback failed after it started (a stream died, a decode error).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
playing
→ Stream<
bool> -
True while sound/pictures are actually being produced — not while the UI
merely thinks so.
no setter
-
position
→ Stream<
Duration> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
waveform
→ Stream<
List< ?double> > -
Amplitude samples for
mediaPlayer.waveform, or null when this host cannot produce them. Null is an answer the widget reports — acceptingwaveform: trueand drawing nothing is not.no setter
Methods
-
dispose(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> -
play(
) → Future< void> -
seek(
Duration position) → Future< void> -
setMuted(
bool muted) → Future< void> -
setVolume(
double volume) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited