Is mms:// URL supported over Media Foundation?

0

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.

  1. Any reason why it coming as MFMediaType_Image even it is a video file?

  2. 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).

  1. 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?

  2. 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?

winapi
directshow
mms
windows-media-player
ms-media-foundation
asked on Stack Overflow Jun 14, 2013 by user1802096 • edited Jun 17, 2013 by Roman R.

1 Answer

0

For starters:

When you play mms:// in Windows Media Player, the filter graph looks like this:

mms:// on WMP

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:

  1. WM ASF Reader Filter
  2. Your custom source filter based on WM Format SDK

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.

answered on Stack Overflow Jun 14, 2013 by Roman R. • edited Jun 17, 2013 by Roman R.

User contributions licensed under CC BY-SA 3.0