file_audio

A plugin for playing audio files and asset files with ducking support for iOS and Android.

Link to pub.dev package: flie_audio

Installation

In the dependencies section of the pubspec.yaml project file add:

file_audio: <latest_version>

Usage

    FileAudio audioPlayer = FileAudio();

    audioPlayer.playAsset(assetPath);
    
    audioPlayer.start(filePath);

    audioPlayer.stop();

    audioPlayer.pause();

    audioPlayer.resume();