Interface TimeUpdateEvent
-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.Event
,com.theoplayer.android.api.event.player.PlayerEvent
public interface TimeUpdateEvent implements PlayerEvent<E>
Fired when TIMEUPDATE occurs for the Player.
- The current playback position.
- Will be kept up-to-date in case of discontinuous playback, e.g. because of a seek.
-
-
Method Summary
Modifier and Type Method Description abstract double
getCurrentTime()
The playback position where the player is currently at. abstract Date
getCurrentProgramDateTime()
The program date time associated with the player. -
-
Method Detail
-
getCurrentTime
abstract double getCurrentTime()
The playback position where the player is currently at.
- Returns:
The playback position where the player is currently at, in seconds.
-
getCurrentProgramDateTime
@Nullable() abstract Date getCurrentProgramDateTime()
The program date time associated with the player.
- Returns:
The program date time associated with the player, as Date. (Nullable)
-
-
-
-