Class AdPlayEvent

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

public class AdPlayEvent extends Event
Payload that accompanies the onAdPlay() event.
  • Constructor Details

  • Method Details

    • getCreativeType

      public String getCreativeType()
      Returns:
      VAST-only The MIME type of the current media file specified in the VAST XML.
    • getNewState

      public PlayerState getNewState()
      Returns:
      The new state of the player.
    • getOldState

      public PlayerState getOldState()
      Returns:
      The state of the player prior to ad playback.
    • getTag

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

      public AdScheduleFromEvent getAdSchedule()
    • getAdPlayReason

      public AdPlayReason getAdPlayReason()
      Returns:
      The reason adPlay occurs.