MF_LOW_LATENCY attribute
Enables low-latency processing in the Microsoft Media Foundation pipeline.
Data type
BOOL stored as UINT32
Get/set
To get this attribute, call IMFAttributes::GetUINT32.
To set this attribute, call IMFAttributes::SetUINT32.
Remarks
Low latency is defined as the smallest possible delay from when the media data is generated (or received) to when it is rendered. Low latency is desirable for real-time communication scenarios. For other scenarios, such as local playback or transcoding, you typically should not enable low-latency mode, because it can affect quality.
Note
The GUID value of this attribute is identical to the CODECAPI_AVLowLatencyMode property defined for the ICodecAPI interface.
Set this attribute on pipeline components as follows:
- Media source: Use the IMFMediaSourceEx::GetSourceAttributes method.
- Media Foundation transform (MFT): Use the IMFTransform::GetAttributes method. For encoders, the encoder might support low latency through the ICodecAPI interface.
- Media sink: Query the media sink for the IMFAttributes interface.
Applications typically do not set this attribute directly on the pipeline components, but instead set the attribute on one of the following objects:
- Media Session: Use the pConfiguation parameter of the MFCreateMediaSession or MFCreatePMPMediaSession function, or else set the attribute on the topology.
- Source Reader: Set the attribute with the configuration properties when you create the Source Reader. For more information, see Source Reader Attributes.
- Sink Writer: Set the attribute with the configuration properties when you create the Sink Writer. For more information, see Sink Writer Attributes.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2012 [desktop apps | UWP apps] |
Header |
|
See also