Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Farial-mahmod opened this issue Dec 1, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Farial-mahmod
Copy link

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 .

@erickzanardo
Copy link
Member

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 erickzanardo added the question Further information is requested label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants