Class SeekEvent


  • public class SeekEvent
    extends Event
    Payload that accompanies the onSeek() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      SeekEvent​(JWPlayer player, double position, double offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getOffset()  
      double getPosition()  
      • Methods inherited from class com.jwplayer.pub.api.events.Event

        getPlayer
      • Methods inherited from class java.lang.Object

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

      • SeekEvent

        public SeekEvent​(@NonNull
                         JWPlayer player,
                         double position,
                         double offset)
    • Method Detail

      • getPosition

        public double getPosition()
        Returns:
        The position of the player before the player seeks (in seconds).
      • getOffset

        public double getOffset()
        Returns:
        The position that has been requested to seek to (in seconds).