共用方式為


MediaFormat.KeyIsDefault Field

Definition

A key for boolean DEFAULT behavior for the track.

[Android.Runtime.Register("KEY_IS_DEFAULT")]
public const string KeyIsDefault;
[<Android.Runtime.Register("KEY_IS_DEFAULT")>]
val mutable KeyIsDefault : string

Field Value

Attributes

Remarks

A key for boolean DEFAULT behavior for the track. The track with DEFAULT=true is selected in the absence of a specific user choice. This is currently used in two scenarios: 1) for subtitle tracks, when the user selected 'Default' for the captioning locale. 2) for a #MIMETYPE_IMAGE_ANDROID_HEIC / #MIMETYPE_IMAGE_AVIF track, indicating the image is the primary item in the file.

The associated value is an integer, where non-0 means TRUE. This is an optional field; if not specified, DEFAULT is considered to be FALSE.

Java documentation for android.media.MediaFormat.KEY_IS_DEFAULT.

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