Media Foundation video capture in metro? RRS feed

  • Question

  • Quick question: Is there a way to capture video w/ the Media Foundation (http://msdn.microsoft.com/en-us/library/windows/desktop/dd317910(v=vs.85).aspx ) in metro apps?

    Some of the classes seem to be both Metro and desktop compatible, however some (like setting the MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE GUID) appear desktop only.

    Note: Yes, I am aware of the MediaCapture and CameraCaptureUI classes. I'm specifically investigating support for Media Foundation.

    • Edited by amkent Tuesday, July 17, 2012 7:50 PM url link fixed
    Tuesday, July 17, 2012 7:42 PM


  • I believe you need to use the MediaCapture or CameraCaptureUI classes. The first thing one does when trying to capture directly with Media Foundation is to enumerate the capture devices, but the Media Foundation functions to enumerate (MFEnumDeviceSources) or create (MFCreateDeviceSource) the media source are desktop only.


    • Marked as answer by amkent Wednesday, July 18, 2012 2:41 PM
    Wednesday, July 18, 2012 5:23 AM