You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 .
The text was updated successfully, but these errors were encountered: