AudioPlayerPlatform class

Constructors

AudioPlayerPlatform()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

dispose() Future<void>
Dispose resources
getCurrentPosition() Future<int>
Get current position in milliseconds
getDuration() Future<int>
Get duration in milliseconds
isPaused() Future<bool>
Check if paused
isPlaying() Future<bool>
Check if playing
pause() Future<void>
Pause playback
play({required String filePath, dynamic onComplete()?, dynamic onProgressUpdate(int currentPosition, int duration)?, dynamic onPlay()?, dynamic onPause()?, dynamic onResume()?, dynamic onError(String errorMessage)?}) Future<void>
Play audio file
resume() Future<void>
Resume playback
stop() Future<void>
Stop playback