Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
768 stars 305 forks source link

Plugin.MediaManager.Forms is not working in xamarin uwp #777

Closed sreejithsree139 closed 3 years ago

sreejithsree139 commented 3 years ago

Reference: https://docs.microsoft.com/en-us/answers/questions/198678/xamarin-forms-issue-with-mediaelement-audio-playin.html

I am using Plugin.MediaManager.Forms for playing audio. It is working fine in android and ios. But in windows, the app is breaking with System.NotImplementedException..

49474-capture

Plugin.MediaManager.Forms: 1.0.7 Xamarin Forms: 4.8.0.1821

Uploaded a sample project here for reference.

martijn00 commented 3 years ago

You need to target the correct windows sdk version

sreejithsree139 commented 3 years ago

@martijn00 What is the correct windows versions, I am adding mine below:

Capture

Also, I have added the "Background Media Playback", "Internet", "Music Library" and "Videos Library" in the Package.appxmanifest under capabilities.

Xamarin Forms: 4.8.0.1821 Visual Studio: 16.7.0

What else I am missing? Could you please point that?

martijn00 commented 3 years ago

Min version should be uap10.0.17763

sreejithsree139 commented 3 years ago

@martijn00 Changed the min version, but a new error is showing. I can't figure out the reason, can you have a look? Capture