Stay organized with collections
Save and categorize content based on your preferences.
TrackData
class TrackData
Holds information associated with a track.
Summary
Properties
drmInitData
val drmInitData: DrmInitData?
Holds DrmInitData
necessary to acquire keys associated with the track, or null if the track has no encryption data.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaParser.TrackData\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTrackData\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaParser.TrackData \"View this page in Java\") \n\n```\nclass TrackData\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaParser.TrackData](#) |\n\nHolds information associated with a track.\n\nSummary\n-------\n\n| Properties ||\n|-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DrmInitData](/reference/kotlin/android/media/DrmInitData)? | [drmInitData](#drmInitData:android.media.DrmInitData) Holds [DrmInitData](/reference/kotlin/android/media/DrmInitData) necessary to acquire keys associated with the track, or null if the track has no encryption data. |\n| [MediaFormat](/reference/kotlin/android/media/MediaFormat) | [mediaFormat](#mediaFormat:android.media.MediaFormat) Holds [MediaFormat](/reference/kotlin/android/media/MediaFormat) information for the track. |\n\nProperties\n----------\n\n### drmInitData\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval drmInitData: DrmInitData?\n```\n\nHolds [DrmInitData](/reference/kotlin/android/media/DrmInitData) necessary to acquire keys associated with the track, or null if the track has no encryption data. \n\n### mediaFormat\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval mediaFormat: MediaFormat\n```\n\nHolds [MediaFormat](/reference/kotlin/android/media/MediaFormat) information for the track."]]