locked
Direct Show and Metro App

    Question

  • I have Existing C/C++ library that uses Direct SHow to Capture Video and Picture.If you see this link here it says Direct Show is Not supported for Metro App and it also Say that Media foundation is alternate for Direct Show.

    http://msdn.microsoft.com/en-us/library/windows/apps/hh464945(v=VS.85).aspx

    Does this mean I have to rewrite the library and replacing DirectShow Api to Media Foundation ?

    Is there Other Way I can Use the Existing Library in Metro App???

    Please Suggest me!

    Thanks

     

    Saturday, November 26, 2011 6:56 PM

Answers

  • Correct.  DirectShow is not supported in Metro style apps so you will need to rewrite the library to use a supported technology.

    --Rob

    • Marked as answer by chris_vr Wednesday, November 30, 2011 6:51 AM
    Wednesday, November 30, 2011 4:49 AM
    Owner

All replies

  • Correct.  DirectShow is not supported in Metro style apps so you will need to rewrite the library to use a supported technology.

    --Rob

    • Marked as answer by chris_vr Wednesday, November 30, 2011 6:51 AM
    Wednesday, November 30, 2011 4:49 AM
    Owner
  • Hello again Chris,

    I hope that you have this one under control. You can leverage your existing DirectShow library but you will need to do some refactoring. You will need to create a Media Foundation MFT that encapsulates your DSP functionality. MFTs are a lot like DirectShow transform filters. If you have written your own DirectShow filter or DMO you should have no problem understanding the new MFT implementation.

    That said, in order to have your custom MFT packaged and loaded from within your Metro application, you are going to need to add an interface or two to get things to work correctly. Unfortunately as of the “Build” developer preview release we don’t have a good bit of sample code to show you how to make you MFT callable from the Win RT environment.

    I know that Stan promised a sample when he spoke at “Build”. I’ve been working with Stan and others to make sure we get a good sample published as soon as we can. Once we have a clean sample that is up to date I will make sure to announce it on my blog (http://blogs.msdn.com/mediasdkstuff/). I’m not sure when we will get this published but I’m working to get it out as soon as possible.

    Thanks for your patience,

    James
    Windows Media SDK Technologies
    Microsoft Developer Services
    http://blogs.msdn.com/mediasdkstuff/

    Wednesday, December 14, 2011 1:13 AM
    Moderator
  • Thanks for your update James.
    Friday, December 16, 2011 7:38 PM
  • Did this ever happen?  If it's on your blog, I'm not recognizing it.
    Friday, August 03, 2012 5:44 PM