Xamarin-Plugins icon indicating copy to clipboard operation
Xamarin-Plugins copied to clipboard

UWP: Unhandled System.Runtime.InteropServices.COMException thrown by IMediaPlaybackSession.CanSeek

Open rachelmoor opened this issue 7 years ago • 1 comments
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:

image

I would be happy to create a pull request if you are OK with this change!

rachelmoor avatar Sep 21 '18 16:09 rachelmoor

This is a great idea - I'll make the changes today and it'll be live in version 1.3.2

Thank you!

adrianstevens avatar Jul 25 '19 01:07 adrianstevens