PlayerController class abstract

the player interface

the interface apis

Constructors

PlayerController({int? id, required PlayerMedia media, bool autoPlay = false, bool once = false, bool loop = false})

Properties

autoPlay bool
getter/setter pair
callback Null Function(PlayerEvent event)
getter/setter pair
created bool
no setter
disposed bool
no setter
duration Duration
no setter
ended bool
no setter
hashCode int
The hash code for this object.
no setterinherited
inited bool
no setter
loading bool
no setter
loop bool
getter/setter pair
media PlayerMedia
final
once bool
getter/setter pair
others List<PlayerController>
others is a list of other players
no setter
package String
no setter
playing bool
no setter
position Duration
getter/setter pair
positionStream Stream<Duration>
no setter
ready bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
getter/setter pair
status PlayerStatus
getter/setter pair
streams PlayerStreams
no setter
subscriptions List<StreamSubscription>
getter/setter pair
volume double
getter/setter pair

Methods

dispose() → void
init() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(PlayerEvent event) Future<void>
pause() Future<void>
play() Future<void>
replay() Future<void>
seek(Duration position) → void
setAutoPlay(bool autoPlay) Future<void>
setLoop(bool loop) Future<void>
setMedia(PlayerMedia media) Future<void>
setOnce(bool once) Future<void>
setPosition(Duration position) Future<void>
setSpeed(double speed) Future<void>
setStatus(PlayerStatus status) Future<void>
setVolume(double volume) Future<void>
stop() Future<void>
toggle() → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

enableLog bool
getter/setter pair
players List<PlayerController>
getter/setter pair

Static Methods

boot() → void
disposeAll() → void
disposeAll dispose all the players
pauseAll() → void
pauseAll pause all the players
playAll() → void
playAll play all the players
stopAll() → void
stopAll stop all the players