Question Play mp3 file from external storage with Maui.Audio

NikitaYVN

New member
Joined
Mar 17, 2024
Messages
2
Programming Experience
Beginner
How can I play an audio file from an external storage on android using Plugins.Maui.Audio?
 
Solution
I just did a quick search for "OpenAppPackageFileAsync" and that method appears to return a Stream. If you have an example that uses that result then you have an example that can be easily adapted to work with any Stream. That would suggest that your actual problem is how to get a Stream from a file, which is something you can search for pretty easily.
What does the documentation say?
 
That's sample code in their readme. What does the actual documentation for the method actually say about what can be passed into the player?
 
I just did a quick search for "OpenAppPackageFileAsync" and that method appears to return a Stream. If you have an example that uses that result then you have an example that can be easily adapted to work with any Stream. That would suggest that your actual problem is how to get a Stream from a file, which is something you can search for pretty easily.
 
Solution

Latest posts

Back
Top Bottom