Forum Xamarin Xamarin.Forms

Play Media file from Resource

JassimRahmaJassimRahma USMember ✭✭✭✭

Hi,

I have an MP3 file in my Android's Resources/Raw folder, the file name is myAudio.mp3

The same file is placed in my iOS Resources/myAudio.mp3

I am trying to play the file uaing Xamarin Mediamanager plugin but it's not playiing any sound

I tried this:

await CrossMediaManager.Current.Play("raw/myAudio.mp3");

and this:

await CrossMediaManager.Current.PlayFromResources("raw/myAudio.mp3");

Answers

Sign In or Register to comment.