ocarina icon indicating copy to clipboard operation
ocarina copied to clipboard

Doesn't play audio from '/storage/emulated/0' and its sub-directories

Open Farial-mahmod opened this issue 2 years ago • 1 comments

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 .

Farial-mahmod avatar Dec 01 '22 11:12 Farial-mahmod

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.

erickzanardo avatar Dec 01 '22 11:12 erickzanardo