Closed Hackmodford closed 4 years ago
Sounds like a good addition! Please open the PR and i'll have a look.
I created a PR. I'm not sure if it builds as I'm on a really old slow mac laptop. Let me know if I need to move the file to a better location.
I had to work around it not being available on TvOS: https://github.com/Baseflow/XamarinMediaManager/blob/develop/MediaManager/Platforms/Ios/Media/MPMediaItemExtensions.cs
🚀 Feature Requests
Extension of MPMediaItem to convert to IMediaItem
Contextualize the feature
On iOS, I would like to perform a MPMediaQuery to play content synced via iTunes/Music/Books on the device.
Describe the feature
I tried passing in the assetUrl but it doesn't work 100% of the time. (I had errors loading metadata). One workaround is to just create a simple adapter class. Something like this?
This seems to be working. However I'm not sure how to handle the artwork as you need to specify a size for the UIImage.
If something like this already exists or will cause me headaches later, please let me know. I'm very new to this library but am willing to create a PR if this is worthy of adding to the project.
Platforms affected (mark all that apply)