How to play audio file from file system xamarin iOS

gvuksagvuksa RSMember ✭✭

I am using Xamarin Media Manager (https://github.com/martijn00/XamarinMediaManager) to play music in app. The app is build in xamarin forms, but I am having only issue with iOS.

It works nice when I play music from url, but is there a way to save and play audio files on iphone from local storage or iCloud?

Best Answer

  • gvuksagvuksa RS ✭✭
    Accepted Answer

    If anyone needs this, I had resolved it by using MPMediaPickerController to enable user to select music from the library, and then created list of AssetURL's from selected items (on ItemsPicked event of MPMediaPickerController) and played those URL's in XamarinMediaManager.

Answers

  • gvuksagvuksa RSMember ✭✭
    Accepted Answer

    If anyone needs this, I had resolved it by using MPMediaPickerController to enable user to select music from the library, and then created list of AssetURL's from selected items (on ItemsPicked event of MPMediaPickerController) and played those URL's in XamarinMediaManager.

Sign In or Register to comment.