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?
For starters:
When you play mms:// in Windows Media Player, the filter graph looks like this:
The fact that WMP uses DirectShow tells that it was unable to set up playback via Media Foundation. CLSID of the source filter on this graph is not public, it is an internal class of Windows Media Player: not documented, not even available for third party applications.
This leaves you two options:
I have read MMS protocol is supported in Media Foundation
The MSDN article says mms:// URLs are accepted to negotiate RTSP/HTTP protocol (where and if available!) via rollover.
User contributions licensed under CC BY-SA 3.0