AudioPlayer class

Constructors

AudioPlayer({String playerId, MethodChannel channel})

Properties

audioLength Duration
Length of the loaded audio clip. [...]
read-only
bufferedPercent int
read-only
channel MethodChannel
final
isSeeking bool
read-only
playerId String
final
position Duration
Current playhead position of the AudioPlayer. [...]
read-only
state AudioPlayerState
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addListener(AudioPlayerListener listener) → void
dispose() → void
loadMedia(Uri uri) → void
pause() → void
play() → void
removeListener(AudioPlayerListener listener) → void
seek(Duration duration) → void
stop() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited