-api-id | -api-type |
---|---|
T:Windows.Media.Capture.Frames.MediaFrameSource |
winrt class |
Represents a source of media frames, such as a color or infrared camera.
To get an instance of MediaFrameSource, you must first initialize the MediaCapture object with a MediaFrameSourceGroup that includes your desired media frame source. You do this by setting the SourceGroup of the MediaCaptureInitializationSettings object you pass into MediaCapture.InitializeAsync. Next, use the MediaFrameSourceInfo.Id property associated with the desired frame source as the key in the MediaCapture object's FrameSources dictionary to get an instance of the MediaFrameSource object.
For how-to guidance on using MediaFrameSource to capture frames, see Process media frames with MediaFrameReader.