Xamarin-Plugins
Xamarin-Plugins copied to clipboard
UWP: Unhandled System.Runtime.InteropServices.COMException thrown by IMediaPlaybackSession.CanSeek
trafficstars
First, thank you for creating this Plugin!
I am seeing while running a UWP app that if all audio output is disabled then the Windows MediaPlaybackSession is throwing System.Runtime.InteropServices.COMException when attempting to access the CanSeek property and crashing the app.
I was hoping to surround the CanSeek property in the SimpleAudioPlayerImplementation with a try-catch block like this:

I would be happy to create a pull request if you are OK with this change!
This is a great idea - I'll make the changes today and it'll be live in version 1.3.2
Thank you!