Package com.jwplayer.pub.api.events
Class AdPauseEvent
java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.AdPauseEvent
Payload that accompanies the onAdPause() event.
-
Constructor Summary
ConstructorsConstructorDescriptionAdPauseEvent
(JWPlayer player, String creativeType, PlayerState newState, PlayerState oldState, String tag, AdPauseReason adPauseReason) -
Method Summary
-
Constructor Details
-
AdPauseEvent
public AdPauseEvent(JWPlayer player, String creativeType, PlayerState newState, PlayerState oldState, String tag, AdPauseReason adPauseReason)
-
-
Method Details
-
getCreativeType
- Returns:
- VAST-only The MIME type of the current media file specified in the VAST XML.
-
getNewState
- Returns:
- The new state of the player. This should be "paused".
-
getOldState
- Returns:
- The state of the player prior to ad pause.
-
getTag
- Returns:
- The URL of the ad tag that is currently playing.
-
getAdPauseReason
- Returns:
- The reason adPause occurs.
-