Hi, I have tried many different method to load the audio media assets. the Network URL works, but local file doesn't.
await _player.setAudioSource(
AudioSource.uri(Uri.parse("asset:///assets/audios/sample3.mp3")));
or
AudioSource.uri(Uri.parse("assets/audios/sample.mp3")));
Both doesn't work.
I have downloaded the code, and pubspec.yaml does include the asset
assets:
- assets/fonts/
- assets/images/
- assets/videos/
- assets/audios/
- assets/lottie_animations/
- assets/rive_animations/
- assets/pdfs/
This is the relative path from visual code
assets/audios
Thank you so much for all the help.