public interface

MediaTimeProvider.OnMediaTimeListener

 androidx.media2.player.subtitle.MediaTimeProvider.OnMediaTimeListener

Subclasses:

SubtitleTrack

Overview

Mediatime listener

Summary

Methods
public voidonSeek(long timeUs)

Called when the media time changed due to seeking.

public voidonStop()

Called when the playback stopped.

public voidonTimedEvent(long timeUs)

Called when the registered time was reached naturally.

Methods

public void onTimedEvent(long timeUs)

Called when the registered time was reached naturally.

Parameters:

timeUs: current media time

public void onSeek(long timeUs)

Called when the media time changed due to seeking.

Parameters:

timeUs: current media time

public void onStop()

Called when the playback stopped. This is not called on pause, only on full stop, at which point there is no further current media time.