Class AdTimeEvent

java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.AdTimeEvent

public class AdTimeEvent extends Event
Payload that accompanies the onAdTime() event.
  • Constructor Details

    • AdTimeEvent

      public AdTimeEvent(JWPlayer player, AdClient client, String creativeType, double duration, double position, int sequence, String tag)
  • Method Details

    • getClient

      public AdClient getClient()
      Returns:
      The client that is currently being used.
    • getCreativeType

      public String getCreativeType()
      Returns:
      The type of advertising creative.
    • getDuration

      public double getDuration()
      Returns:
      The total duration of the ad creative.
    • getPosition

      public double getPosition()
      Returns:
      The current playback position in the ad creative.
    • getSequence

      public int getSequence()
      Returns:
      Returns the sequence number the ad is a part of.
    • getTag

      public String getTag()
      Returns:
      The URL of the ad tag that is currently playing.