共用方式為


MediaFormat.KeyTrackId Field

Definition

A key describing a unique ID for the content of a media track.

[Android.Runtime.Register("KEY_TRACK_ID", ApiSince=24)]
public const string KeyTrackId;
[<Android.Runtime.Register("KEY_TRACK_ID", ApiSince=24)>]
val mutable KeyTrackId : string

Field Value

Attributes

Remarks

A key describing a unique ID for the content of a media track.

This key is used by MediaExtractor. Some extractors provide multiple encodings of the same track (e.g. float audio tracks for FLAC and WAV may be expressed as two tracks via MediaExtractor: a normal PCM track for backward compatibility, and a float PCM track for added fidelity. Similarly, Dolby Vision extractor may provide a baseline SDR version of a DV track.) This key can be used to identify which MediaExtractor tracks refer to the same underlying content.

The associated value is an integer.

Java documentation for android.media.MediaFormat.KEY_TRACK_ID.

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