Class AdPauseEvent

  • All Implemented Interfaces:
    Event

    public class AdPauseEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onAdPause() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      AdPauseEvent​(java.lang.String creativeType, com.longtailvideo.jwplayer.core.PlayerState newState, com.longtailvideo.jwplayer.core.PlayerState oldState, java.lang.String tag)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCreativeType()  
      com.longtailvideo.jwplayer.core.PlayerState getNewState()  
      com.longtailvideo.jwplayer.core.PlayerState getOldState()  
      java.lang.String getTag()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdPauseEvent

        public AdPauseEvent​(java.lang.String creativeType,
                            com.longtailvideo.jwplayer.core.PlayerState newState,
                            com.longtailvideo.jwplayer.core.PlayerState oldState,
                            java.lang.String tag)
    • 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 com.longtailvideo.jwplayer.core.PlayerState getNewState()
        Returns:
        The new state of the player. This should be "paused".
      • getOldState

        @NonNull
        public com.longtailvideo.jwplayer.core.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.