Audio Player UI Plugin.
- Play (url / local file)
- Resume / pause
First, add audioplayerui
as a dependency in your pubspec.yaml
file.
Then add the AudioPlayerView like this
AudioPlayerController audioPlayerController = AudioPlayerController();
@override
Widget build(BuildContext context) {
return AudioPlayerView(
audioPlayerController: audioPlayerController,
trackUrl: "",
isLocal: false,
trackTitle: "",
trackSubtitle: "",
imageUrl: ""
);
}
Method | description | parameters | notes |
---|---|---|---|
play | Plays a audio file from an remote link | url | |
playLocal | Plays a local audio file | path | |
pause | Pause's the currently playing track | ||
resume | Resumes the currently paused track | ||
stop | Stops the playback of the current track |
Demonstrates how to use the audioplayerui plugin.
See the example documentation for more information.
Feel free to contribute by opening issues and/or pull requests. Your feedback is very welcome!
See CHANGELOG.md.
MIT License
Copyright (c) [2019] [Joran Dob] Copyright (c) [2019] [QREATE]