Share via


MediaFormat.KeyAllowFrameDrop Field

Definition

A key for applications to opt out of allowing a Surface to discard undisplayed/unconsumed frames as means to catch up after falling behind.

[Android.Runtime.Register("KEY_ALLOW_FRAME_DROP", ApiSince=31)]
public const string KeyAllowFrameDrop;
[<Android.Runtime.Register("KEY_ALLOW_FRAME_DROP", ApiSince=31)>]
val mutable KeyAllowFrameDrop : string

Field Value

Attributes

Remarks

A key for applications to opt out of allowing a Surface to discard undisplayed/unconsumed frames as means to catch up after falling behind. This value is an integer. The value 0 indicates the surface is not allowed to drop frames. The value 1 indicates the surface is allowed to drop frames.

MediaCodec describes the semantics.

Java documentation for android.media.MediaFormat.KEY_ALLOW_FRAME_DROP.

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