Class AdTimeEvent


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

      • AdTimeEvent

        public AdTimeEvent​(@NonNull
                           JWPlayer player,
                           @NonNull
                           AdClient client,
                           @Nullable
                           java.lang.String creativeType,
                           double duration,
                           double position,
                           int sequence,
                           @NonNull
                           java.lang.String tag)
    • Method Detail

      • getClient

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

        @Nullable
        public java.lang.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

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