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
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isSeeking → bool
-
read-only
- playerId → String
-
final
- position → Duration
-
Current playhead position of the AudioPlayer. [...]
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- state → AudioPlayerState
-
read-only
Methods
-
addListener(
AudioPlayerListener listener) → void -
dispose(
) → void -
loadMedia(
Uri uri) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
pause(
) → void -
play(
) → void -
removeListener(
AudioPlayerListener listener) → void -
seek(
Duration duration) → void -
stop(
) → void -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited