MethodChannelFlutterAudioPlayerPlugin class

An implementation of FlutterAudioPlayerPluginPlatform that uses method channels.

Inheritance

Properties

completionStream Stream<void>
Stream of playback completion events
no setteroverride
errorStream Stream<String>
Stream of error events
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
nextTrackStream Stream<int>
Stream of next track events
no setteroverride
positionStream Stream<int>
Stream of position updates
no setteroverride
previousTrackStream Stream<int>
Stream of previous track events
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusStream Stream<String>
Stream of player status updates
no setteroverride

Methods

dispose() → dynamic
inherited
getCurrentPosition() Future<int>
override
getDuration() Future<int>
override
getPlatformVersion() Future<String?>
override
loadAudio(String url, String title, String artist) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
override
play(String url) Future<void>
override
playNext(int nextIndex) Future<void>
override
playPrevious(int previousIndex) Future<void>
override
resume() Future<void>
override
seekTo(int position) Future<void>
override
setFilePath(String filePath) Future<void>
override
stop() Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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