Stay organized with collections
Save and categorize content based on your preferences.
class TimedMetaData
Class that embodies one timed metadata access unit, including
- a time stamp, and
- raw uninterpreted byte-array extracted directly from the container.
Summary
Public constructors |
Constructor.
|
Public constructors
TimedMetaData(
timestampUs: Long,
metaData: ByteArray)
Constructor.
Parameters |
timestampUs |
Long: the timestamp in microsecond for the timed metadata |
metaData |
ByteArray: the metadata array for the timed metadata. No data copying is made. It should not be null. |
Public methods
fun getMetaData(): ByteArray!
Return |
ByteArray! |
raw, uninterpreted content of this metadata access unit; for ID3 tags this includes everything starting from the 3 byte signature "ID3". |
getTimestamp
fun getTimestamp(): Long
Return |
Long |
the timestamp associated with this metadata access unit in microseconds; 0 denotes playback start. |
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,["# TimedMetaData\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTimedMetaData\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/TimedMetaData \"View this page in Java\") \n\n```\nclass TimedMetaData\n```\n\n|---|----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.TimedMetaData](#) |\n\nClass that embodies one timed metadata access unit, including\n\n- a time stamp, and\n- raw uninterpreted byte-array extracted directly from the container.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [TimedMetaData](#TimedMetaData(kotlin.Long,%20kotlin.ByteArray))`(`timestampUs:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `metaData:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Constructor. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------|--------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [getMetaData](#getMetaData())`()` \u003cbr /\u003e |\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getTimestamp](#getTimestamp())`()` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### TimedMetaData\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nTimedMetaData(\n timestampUs: Long, \n metaData: ByteArray)\n```\n\nConstructor.\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `timestampUs` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): the timestamp in microsecond for the timed metadata |\n| `metaData` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): the metadata array for the timed metadata. No data copying is made. It should not be null. |\n\nPublic methods\n--------------\n\n### getMetaData\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMetaData(): ByteArray!\n```\n\n| Return ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | raw, uninterpreted content of this metadata access unit; for ID3 tags this includes everything starting from the 3 byte signature \"ID3\". |\n\n### getTimestamp\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTimestamp(): Long\n```\n\n| Return ||\n|------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | the timestamp associated with this metadata access unit in microseconds; 0 denotes playback start. |"]]