Join us for ⁠#Android11: The Beta Launch Show on June 3!
Added in API level R

TrackData

class TrackData
kotlin.Any
   ↳ android.media.MediaParser.TrackData

Holds information associated with a track.

Summary

Properties

DrmInitData?

Holds DrmInitData necessary to acquire keys associated with the track, or null if the track has no encryption data.

MediaFormat

Holds MediaFormat information for the track.

Properties

drmInitData

Added in API level R
val drmInitData: DrmInitData?

Holds DrmInitData necessary to acquire keys associated with the track, or null if the track has no encryption data.

mediaFormat

Added in API level R
val mediaFormat: MediaFormat

Holds MediaFormat information for the track.