MediaFrameReaderAcquisitionMode
MediaFrameReaderAcquisitionMode
MediaFrameReaderAcquisitionMode
MediaFrameReaderAcquisitionMode
Enum
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Specifies the way that the system should manage frames acquired from a MediaFrameReader or a MultiSourceMediaFrameReader when a new frame arrives before the app has finished processing the previous frame.
public : enum class MediaFrameReaderAcquisitionModepublic enum MediaFrameReaderAcquisitionModePublic Enum MediaFrameReaderAcquisitionMode// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Fields
| Buffered Buffered Buffered Buffered | Prerelease. 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. |
| Realtime Realtime Realtime Realtime | Prerelease. 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. |
Remarks
Use a value from this enumeration when setting the MediaFrameReader.AcquisitionMode property or the MultiSourceMediaFrameReader.AcquisitionMode property.