ms-media-foundationwindows-media-player

how windows media player call third-party Decoder MFT?


According the decoder sample in Windows SDK, I realize myself decoder MFT, but there is one question about third-party MFT. I register a amr codec MFT, debug with windows sample code), connect the topology manually, it can play normally. But if I run windows media player, it doesn't play the file include amr codec.

What should I do? Windows media player can call my codec MFT automatically.

Other question is about MERIT like directshow.


Solution

  • Are you registering your MFT with MFTRegister as MSDN suggests?

    Registering MFTs

    When you register a Media Foundation transform (MFT), two types of information are written to the registry:

    [...]

    To create the MFT enumeration entries in the registry, call the MFTRegister function. You can include the following information about the MFT:

    [...]

    This is the way to make your MFT discoverable by applications.