AudioPlayer
A Flutter audio plugin (ObjC/Java) to play remote or local audio files.
Features
- [x] Android & iOS
- [x] play (remote file)
- [x] stop
- [x] pause
- [x] onComplete
- [x] onDuration / onCurrentPosition
- [x] seek
- [x] mute
Usage
To use this plugin :
- Add the dependency to your pubspec.yaml file.
- Instantiate an AudioPlayer instance
Player Controls
Status and current position
The dart part of the plugin listen for platform calls :
Do not forget to cancel all the subscriptions when the widget is disposed.
iOS
:warning: iOS App Transport Security
By default iOS forbids loading from non-https url. To cancel this restriction edit your .plist and add :