Added in API level 30

MediaParser.TrackData


public static final class MediaParser.TrackData
extends Object

java.lang.Object
   ↳ android.media.MediaParser.TrackData


Holds information associated with a track.

Summary

Fields

public final DrmInitData drmInitData

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

public final MediaFormat mediaFormat

Holds MediaFormat information for the track.

Inherited methods

Fields

drmInitData

Added in API level 30
public final 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 30
public final MediaFormat mediaFormat

Holds MediaFormat information for the track.