Class AdPauseEvent


  • public class AdPauseEvent
    extends Event
    Payload that accompanies the onAdPause() event.
    • Constructor Detail

      • AdPauseEvent

        public AdPauseEvent​(@NonNull
                            JWPlayer player,
                            @Nullable
                            java.lang.String creativeType,
                            @NonNull
                            PlayerState newState,
                            @NonNull
                            PlayerState oldState,
                            @NonNull
                            java.lang.String tag,
                            @NonNull
                            AdPauseReason adPauseReason)
    • Method Detail

      • getCreativeType

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

        @NonNull
        public PlayerState getNewState()
        Returns:
        The new state of the player. This should be "paused".
      • getOldState

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

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

        @NonNull
        public AdPauseReason getAdPauseReason()
        Returns:
        The reason adPause occurs.