I am new to WMP Plug-in. I want to design a MPEG4 decoder to be pluged in to WMP. I use DSP Plug-in and register it as follows and expect WMP to pass input media file directly to my Plug-in for decoding. When I debug it, the Plug-in is registerd, but it is not instantiated by WMP. WMP says it may not support media type. Instead of MEDIATYPE_Stream, I use MEDIATYPE_Audio,
the Plug-in works and is inserted at the backend before audio renderer. How can I insert it at the frontend of WMP?
Thanks!
// Describe the type of data handled by the plug-in
DMO_PARTIAL_MEDIATYPE mt = { 0 };
mt.type = MEDIATYPE_Stream;
mt.subtype = MEDIASUBTYPE_QTMovie;
// Register the plug-in with WMP
hr = spRegistrar->WMPRegisterPlayerPlugin(
bstrFriendlyName, // friendly name (for menus, etc)
bstrDescription, // description (for Tools->Options->Plug-ins)
NULL, // path to app that uninstalls the plug-in
1, // DirectShow priority for this plug-in
WMP_PLUGINTYPE_DSP, // Plug-in type
CLSID_DRMPlugin,// Class ID of plug-in
1, // No. media types supported by plug-in
&mt); // Array of media types supported by plug-in
the Plug-in works and is inserted at the backend before audio renderer. How can I insert it at the frontend of WMP?
Thanks!
// Describe the type of data handled by the plug-in
DMO_PARTIAL_MEDIATYPE mt = { 0 };
mt.type = MEDIATYPE_Stream;
mt.subtype = MEDIASUBTYPE_QTMovie;
// Register the plug-in with WMP
hr = spRegistrar->WMPRegisterPlayerPlugin(
bstrFriendlyName, // friendly name (for menus, etc)
bstrDescription, // description (for Tools->Options->Plug-ins)
NULL, // path to app that uninstalls the plug-in
1, // DirectShow priority for this plug-in
WMP_PLUGINTYPE_DSP, // Plug-in type
CLSID_DRMPlugin,// Class ID of plug-in
1, // No. media types supported by plug-in
&mt); // Array of media types supported by plug-in

Comment