I've gutted the DShow code from MediaUriPlayer and implemented the MediaFoundation code from an MS provided example. It seems to load the video and play without error but I get no rendered video. I'm assuming it has to do with how I'm assigning the EvrPresenter
in the MF topology. Here's the code where I'm assigning the Evr:
if (guidMajorType == MFMediaType.Video)
hr = MFExtern.MFCreateVideoRenderer(new Guid("6EF2A660-47C0-4666-B13D-CBB717F2FA2C"), out sink);
IMFVideoRenderer pVideoRenderer = sink as IMFVideoRenderer;
hr = pVideoRenderer.InitializeRenderer(null, presenter);
Is there any other flags or code I need to add to the presenter?