flutter_sound
flutter_sound copied to clipboard
[ENH]: How to play the local audio of the project. It's like using local pictures
How to play the local audio of the project. It's like using local pictures ?
ByteData data =
await PlatformAssetBundle().load('assets/sounds/busy.mp3'); // assets link
await player.startPlayer(
fromDataBuffer: data.buffer.asUint8List(),
sampleRate: 44100,
codec: Codec.mp3,
numChannels: 2,
whenFinished: () {});
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.