MediaFormat.KeyPriority Field

Definition

A key describing the desired codec priority.

[Android.Runtime.Register("KEY_PRIORITY", ApiSince=23)]
public const string KeyPriority;
[<Android.Runtime.Register("KEY_PRIORITY", ApiSince=23)>]
val mutable KeyPriority : string

Field Value

Attributes

Remarks

A key describing the desired codec priority.

The associated value is an integer. Higher value means lower priority.

Currently, only two levels are supported:<br> 0: realtime priority - meaning that the codec shall support the given performance configuration (e.g. framerate) at realtime. This should only be used by media playback, capture, and possibly by realtime communication scenarios if best effort performance is not suitable.<br> 1: non-realtime priority (best effort).

This is a hint used at codec configuration and resource planning - to understand the realtime requirements of the application; however, due to the nature of media components, performance is not guaranteed.

Java documentation for android.media.MediaFormat.KEY_PRIORITY.

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