Interface RateChangeEvent
-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.Event,com.theoplayer.android.api.event.player.PlayerEvent
public interface RateChangeEvent implements PlayerEvent<E>
Fired when RATECHANGE occurs for the Player.
- The effective playback rate changes, which is the speed at which the media resource plays, as a multiple of its intrinsic speed.
-
-
Method Summary
Modifier and Type Method Description abstract doublegetCurrentTime()The time at which the playback rate of the player changed. abstract doublegetPlaybackRate()The new rate of playback of the player. -
-
Method Detail
-
getCurrentTime
abstract double getCurrentTime()
The time at which the playback rate of the player changed.
- Returns:
the time at which the playback rate of the player changed, in seconds.
-
getPlaybackRate
abstract double getPlaybackRate()
The new rate of playback of the player.
- A rate between 0.5 and 4 is recommended for a pleasant experience.
- Returns:
The new rate of playback of the player.
-
-
-
-