How to write a presenter of evr  
Author Message
Fei-tian





PostPosted: Media Foundation Development, How to write a presenter of evr Top

Hello,

I wrote a presenter for evr, I got message MFVP_MESSAGE_INVALIDATEMEDIATYPE 3 times, but I never got MFVP_MESSAGE_PROCESSINPUTNOTIFY message. The window just show white screen.

And someone calls queryinterface with iid {83A4CE40-7710-494B-A893-A472049AF630}, but I cannot search this GUID in my any installed SDK.

The evr query interfaces from my presenter is more than the description of MF SDK docuements. So is there any example or more docuements about presenter And what is the GUID {83A4CE40-7710-494B-A893-A472049AF630} What problem may cause MFVP_MESSAGE_INVALIDATEMEDIATYPE

Thanks




Audio and Video Development2  
 
 
Becky Weiss - MSFT





PostPosted: Media Foundation Development, How to write a presenter of evr Top

Fei-tian,

As for the QueryInterface IID you don't recognize, that IID has to do with the Protected Video Path, and you can safely fail (E_NOINTERFACE) that QueryInterface call. I'm assuming that you are not running the Media Foundation Protected Media Path (i.e. you do MFCreateSession, which runs the pipeline in the same process as your application instead of MFCreatePMPSession, which runs the pipeline in the protected mfpmp.exe process).

As for why you never see any PROCESSINPUTNOTIFY... Are you sure that the SetTopology operation on the Media Session has succeeded (Make sure MESessionTopologySet comes back with status code S_OK.) And has the Start operation succeeded (Again, make sure that IMFMediaSession::Start succeeds, as well as the MESessionStarted event.) That might help us narrow this down.

Becky



 
 
Fei-tian





PostPosted: Media Foundation Development, How to write a presenter of evr Top

Thanks for all.
I have completed my presenter. The main problem is when I got MFVP_MESSAGE_INVALIDATEMEDIATYPE message, I must set the output format on the output stream of mixer.
Thanks all again.