flutter_audio_player
Plugin that allow flutter to play a local short sound(30 seconds or less in duration).
Install
add flutter_audio_player
as a dependency in pubspec.yaml
How to use
- add audio file
- add asset in pubspec.yaml
- you can add audio to player list
AudioPlayer.addSound(soundPath);
- you can remove all audio in player list
AudioPlayer.removeAllSound();
Getting Started
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.