I am running Media foundation sample example MFPlayer to render the URL mms://.
this is getting failed with error code MF_E_INVALIDMEDIATYPE
.
In GetMajorType of this Sample, type is coming as MFMediaType_Image
instead of MFMediaType_Video
.
Any reason why it coming as
MFMediaType_Image
even it is a video file?If it come as
MFMediaType_Image
, how to handle it? I have tried using same code what
it is using for rendering video but got failed with ERROR 0xc00d5214
(MF_E_TOPO_UNSUPPORTED
).
If I play same mms:// in wmplayer, it does not use Media Foundation, it uses direct show to play the same. in direct show it uses wmrender source filter which i cant use as there is no information how to use that. What actually this wmrender source filter does? How can I use/create the same in my application?
I tried using topoedit for rendering the same. it throws error stating Invalid media type. I have read MMS protocol is supported in media Foundation, than why it is getting failed in topoedit?