Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.53 KB

mediaframesource.md

File metadata and controls

23 lines (16 loc) · 1.53 KB
-api-id -api-type
T:Windows.Media.Capture.Frames.MediaFrameSource
winrt class

Windows.Media.Capture.Frames.MediaFrameSource

-description

Represents a source of media frames, such as a color or infrared camera.

-remarks

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.

-examples

-see-also

Process media frames with MediaFrameReader