MediaFailed invoked when no audio device is present.

Aug 1, 2012 at 10:06 PM

I believe this is not the best course of action.  Video should still play / MediaFailed should not be invoked.  There could always be an AudioRendererFailed event instead.  The hresult for this specific failure is -2147220906 and could be handled in MediaUriPlayer.cs.

Jan 28, 2014 at 4:46 PM
I know this is old, but it is still a relevant issue for me. Does anyone have a work around to play video without an installed audio device? Thanks.
Feb 11, 2014 at 8:38 PM
I modified the code base and got it working when no audio device is present.

In this method:

private static IBaseFilter AddFilterByDevice(IGraphBuilder graphBuilder, DsDevice device)

comment out this line:


Then just use the updated .dll file that gets generated in: