I'm using MediaElement
to play sound in an Uno-Platform project.
It plays well in the UWP project but doesn't work in the Android project.
The audio file is located in the shared project as Exclude from project, and is linked in the UWP project as Content
and in the Droid project as AndroidAsset
.
XAML:
<MediaElement Source="/Assets/MySound.wav"/>
I've also tried accessing it programmatically set the Source
to ms-appx:///Assets/MySound.wav
with no success.