How to get MFT instance after msInsertEffect? RRS feed

  • Question

  • Hi,

    I'm developing camera metro app by MediaCapture class.

    I have below questions when developing...

    1. After AddEffectAsync(), i like to query IUnknown of created MFT instance, how could i do that?

    2. In MediaCapture sample, <video> tag can display video from camera by specifying video.src = URL.CreateObjectURL(mediaCaptureMgr, false); is it bcz mediaCapture class inherit Blob or File interface?

    Monday, October 31, 2011 3:54 PM

All replies

  • Hi Slash,

    You do not have interfaces like IUnknown in script.  IDispatch is the default and is what an 'Object' is.  What are you trying to do exactly?  Have you looked ant the Media samples in the samples gallery, and is there something close there?


    Jeff Sanders (MSFT)
    Monday, October 31, 2011 8:35 PM
  • For the first question the metro style app can call any method defined by WinRT interfaces implemented in the MFT, you can follow the logic posted in this thread. Note that you don't need to query interfaces to call their methods when using JS.

    Tuesday, November 1, 2011 7:34 PM