Answered by:

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.

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.