Added in API level 23

TimedMetaData


class TimedMetaData
kotlin.Any
   ↳ android.media.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
TimedMetaData(timestampUs: Long, metaData: ByteArray)

Constructor.

Public methods
ByteArray!

Long

Public constructors

TimedMetaData

Added in API level 29
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

getMetaData

Added in API level 23
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

Added in API level 23
fun getTimestamp(): Long
Return
Long the timestamp associated with this metadata access unit in microseconds; 0 denotes playback start.