Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.81 KB

multisourcemediaframereader_acquisitionmode.md

File metadata and controls

27 lines (18 loc) · 1.81 KB
-api-id -api-type
P:Windows.Media.Capture.Frames.MultiSourceMediaFrameReader.AcquisitionMode
winrt property

Windows.Media.Capture.Frames.MultiSourceMediaFrameReader.AcquisitionMode

-description

Specifies the way that the system should manage frames acquired from a MultiSourceMediaFrameReader when a new frame arrives before the app has finished processing the previous frame.

-property-value

A value that specifies the frame reader's acquisition mode.

-remarks

If this property is set to Realtime, frames that arrive while the app's FrameArrived event handler is executing are dropped. This mode works well for scenarios where processing the most current frame is prioritized, such as real-time computer vision applications.

If this property is set to Buffered, frames that arrive while the app's FrameArrived event handler is executing are buffered in memory by the system. The FrameArrived event is raised for each buffered frame when the event handler for the previous frame has completed. This mode is intended for apps for which the sequence of frames is critical and for which dropped frames will break the scenario. Note that once the system's memory limit for buffered frames has been reached, no more frames will be acquired until the app processes buffered frames, freeing memory for the acquisition of additional frames.

-see-also

MediaFrameReaderAcquisitionMode

-examples