public static interface MediaPlayer.OnTimedTextListener

android.media.MediaPlayer.OnTimedTextListener



Interface definition of a callback to be invoked when a timed text is available for display.

Summary

Public methods

abstract void onTimedText(MediaPlayer mp, TimedText text)

Called to indicate an avaliable timed text

Public methods

onTimedText

public abstract void onTimedText (MediaPlayer mp, 
                TimedText text)

Called to indicate an avaliable timed text

Parameters
mp MediaPlayer: the MediaPlayer associated with this callback
text TimedText: the timed text sample which contains the text needed to be displayed and the display format.

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.