ocarina
ocarina copied to clipboard
Doesn't play audio from '/storage/emulated/0' and its sub-directories
I have followed ocarina's official example from lib/main.dart:
_ElevatedButton( child: Text("Play asset audio"), onPressed: () async { final player = OcarinaPlayer( asset: 'storage/emulated/0/Quran.mp3', loop: _loop); setState(() { player = player; }); }),
This snippet fails to load an MP3 file that exists in the described filesystem and can be played by YouTube Music Player locally .
Kindly, have a look .
Take a look on the second example of the readme, that is how you play filesystem files. The code you are using is used only to play files in your assets bundle.