flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[ENH]: How to play the local audio of the project. It's like using local pictures

Open huanlirui opened this issue 2 years ago • 1 comments

How to play the local audio of the project. It's like using local pictures ?

huanlirui avatar Jan 27 '22 02:01 huanlirui

  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: () {});

mrtnetwork avatar Jan 30 '22 08:01 mrtnetwork

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.

github-actions[bot] avatar Dec 06 '23 01:12 github-actions[bot]