flutter_sound_system 0.0.4
flutter_sound_system: ^0.0.4 copied to clipboard
Flutter sound recorder and player.
Flutter Sound System #
Flutter sound recorder and player.
Getting Started #
Currently only working on Android.
Usage #
Android:
// Storage permission
FlutterSoundSystem.record('path to location including file name');
await FlutterSoundSystem.isRecording().then((isRecording) async {
if(isRecording){
// If true..
} else {
// If false..
}
});
String filePath = await FlutterSoundSystem.stopRecording(); // String
await FlutterSoundSystem.isPlaying().then((isPlaying) async {
if(isPlaying){
// If true..
} else {
// If false..
}
});
FlutterSoundSystem.play('File path');
FlutterSoundSystem.stopPlaying();
FlutterSoundSystem.pausePlaying();