MediaFormat.KeyLatency Field

Definition

An optional key describing the desired encoder latency in frames.

[Android.Runtime.Register("KEY_LATENCY", ApiSince=26)]
public const string KeyLatency;
[<Android.Runtime.Register("KEY_LATENCY", ApiSince=26)>]
val mutable KeyLatency : string

Field Value

Attributes

Remarks

An optional key describing the desired encoder latency in frames. This is an optional parameter that applies only to video encoders. If encoder supports it, it should ouput at least one output frame after being queued the specified number of frames. This key is ignored if the video encoder does not support the latency feature. Use the output format to verify that this feature was enabled and the actual value used by the encoder.

If the key is not specified, the default latency will be implenmentation specific. The associated value is an integer.

Java documentation for android.media.MediaFormat.KEY_LATENCY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to