Sample application can't play file in XP but WMP9 does?

Mar 7, 2012 at 12:17 AM
Edited Mar 7, 2012 at 12:27 AM

I have a base XP SP3 system with .NET installed. I've built the sample app that came with the WPF MediaKit source, and when I load the file nothing shows up or is heard. However I can open the same .AVI in the base installed Windows Media Player 9 and it plays fine. 

How can I troubleshoot the issue to get MediaKit working for me?

Mar 7, 2012 at 2:19 AM

I hacked MediaKit a bit to provide diagnostics on load as well as added code injection points for user code to modify the DirectShow graph (e.g. specify the use of specific filters etc.)  However, you'll have to recompile the MediaKit after you modified it.

The code to build the DirectShow graph is in LoadMedia within MediaUriPlayer.cs.  You can modify it to display to the screen any errors.

Mar 7, 2012 at 11:08 PM

Well I found out why it isn't playing. I'm getting the dreaded 80040273 COMException error. Something screwy with DirectX, video drivers, hardware acceleration, something something... grr