Replies: 2 comments 5 replies
-
You can read file stream form Resources/Raw/, if you want get path, you need read file stream and store it to a folder. |
Beta Was this translation helpful? Give feedback.
2 replies
-
What about playing mp3 files from cross-platform code in MAUI??? Like in Xamarin.Forms thanks to https://www.nuget.org/packages/Teddy.MvvmCross.Plugin.SimpleAudioPlayer Is there something ready in the current Essentials or available NuGet Package which supports this?? Thanks 😇 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Until we have an all-platforms solution for media elements. I am trying to play an MP3 in native code, using dependency injection (Thanks to Gerald Versluis for his great tutorials):
I am trying the code bellow for Android:
The problem is that I am not sure how to define the valid location for the mp3 file. Currently I have the file located in the Resources/Raw/ folder. I don't get any errors with this code, but I get no sound. Any help would be appreciated. I am also looking for the native code for IOS. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions