Class TimeEvent


  • public class TimeEvent
    extends Event
    Payload that accompanies the onTime() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeEvent​(JWPlayer player, double position, double duration)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getDuration()  
      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

      • TimeEvent

        public TimeEvent​(@NonNull
                         JWPlayer player,
                         double position,
                         double duration)
    • Method Detail

      • getPosition

        public double getPosition()
        Returns:
        Playback position in seconds.
      • getDuration

        public double getDuration()
        Returns:
        Duration of the current playlist item in seconds.