Package com.jwplayer.pub.api.events
Class AdPauseEvent
- java.lang.Object
-
- com.jwplayer.pub.api.events.Event
-
- com.jwplayer.pub.api.events.AdPauseEvent
-
public class AdPauseEvent extends Event
Payload that accompanies the onAdPause() event.
-
-
Constructor Summary
Constructors Constructor Description AdPauseEvent(JWPlayer player, java.lang.String creativeType, PlayerState newState, PlayerState oldState, java.lang.String tag, AdPauseReason adPauseReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdPauseReason
getAdPauseReason()
java.lang.String
getCreativeType()
PlayerState
getNewState()
PlayerState
getOldState()
java.lang.String
getTag()
-
-
-
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.
-
-