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.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract double getCurrentTime() The time at which the playback rate of the player changed.
      abstract double getPlaybackRate() The new rate of playback of the player.
      • Methods inherited from class com.theoplayer.android.api.event.Event

        getDate, getType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.