AbstractPlayer class abstract

AbstractPlayer

This class provides the interface for abstract player implementations. The specific implementations are expected to implement the methods accordingly.

The subclasses are then used in composition with the Player class, based on the platform the application is running on.

Constructors

AbstractPlayer()
AbstractPlayer

Properties

bufferController → StreamController<Duration>
final
bufferingController → StreamController<bool>
final
completedController → StreamController<bool>
final
completer → Completer<void>
Completer to wait for initialization of this instance.
final
durationController → StreamController<Duration>
final
hashCode → int
The hash code for this object.
no setterinherited
heightController → StreamController<int?>
final
playingController → StreamController<bool>
final
positionController → StreamController<Duration>
final
rateController → StreamController<double>
final
release → List<Future<void> Function()>
Publicly defined clean-up Functions which must be called before dispose.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ PlayerState
Current state of the player.
getter/setter pair
stream ↔ PlayerStream
Current state of the player available as listenable Streams.
getter/setter pair
subtitleController → StreamController<List<String>>
final
volumeController → StreamController<double>
final
waitForPlayerInitialization → Future<void>
Future<void> to wait for initialization of this instance.
no setter
widthController → StreamController<int?>
final

Methods

dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
play() → Future<void>
playOrPause() → Future<void>
seek(Duration duration) → Future<void>
setRate(double rate) → Future<void>
setSubtitle(String subtitle) → void
Set subtitle (this can be used to set subtitles based on a custom parser)
setVolume(double volume) → Future<void>
toString() → String
A string representation of this object.
inherited
videoWidget() → Widget

Operators

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