Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaPlayer.OnTimedMetaDataAvailableListener
android.media.MediaPlayer.OnTimedMetaDataAvailableListener
|
Interface definition of a callback to be invoked when a
track has timed metadata available.
Summary
Public methods |
abstract
void
|
onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData data)
Called to indicate avaliable timed metadata
This method will be called as timed metadata is extracted from the media,
in the same order as it occurs in the media.
|
Public methods
public abstract void onTimedMetaDataAvailable (MediaPlayer mp,
TimedMetaData data)
Called to indicate avaliable timed metadata
This method will be called as timed metadata is extracted from the media,
in the same order as it occurs in the media. The timing of this event is
not controlled by the associated timestamp.
Parameters |
mp |
MediaPlayer : the MediaPlayer associated with this callback |
data |
TimedMetaData : the timed metadata sample associated with this event |
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,["# MediaPlayer.OnTimedMetaDataAvailableListener\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaPlayer.OnTimedMetaDataAvailableListener\n============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaPlayer.OnTimedMetaDataAvailableListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaPlayer.OnTimedMetaDataAvailableListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.media.MediaPlayer.OnTimedMetaDataAvailableListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition of a callback to be invoked when a\ntrack has timed metadata available. \n**See also:**\n\n- [MediaPlayer.setOnTimedMetaDataAvailableListener(OnTimedMetaDataAvailableListener)](/reference/android/media/MediaPlayer#setOnTimedMetaDataAvailableListener(android.media.MediaPlayer.OnTimedMetaDataAvailableListener))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onTimedMetaDataAvailable](/reference/android/media/MediaPlayer.OnTimedMetaDataAvailableListener#onTimedMetaDataAvailable(android.media.MediaPlayer,%20android.media.TimedMetaData))`(`[MediaPlayer](/reference/android/media/MediaPlayer)` mp, `[TimedMetaData](/reference/android/media/TimedMetaData)` data) ` Called to indicate avaliable timed metadata This method will be called as timed metadata is extracted from the media, in the same order as it occurs in the media. |\n\nPublic methods\n--------------\n\n### onTimedMetaDataAvailable\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onTimedMetaDataAvailable (MediaPlayer mp, \n TimedMetaData data)\n```\n\nCalled to indicate avaliable timed metadata\n\n\nThis method will be called as timed metadata is extracted from the media,\nin the same order as it occurs in the media. The timing of this event is\nnot controlled by the associated timestamp.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------|\n| `mp` | `MediaPlayer`: the MediaPlayer associated with this callback \u003cbr /\u003e |\n| `data` | `TimedMetaData`: the timed metadata sample associated with this event \u003cbr /\u003e |"]]