Class AdErrorEvent

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

public class AdErrorEvent extends Event
Payload that accompanies the onAdError() event.
  • Constructor Details

    • AdErrorEvent

      public AdErrorEvent(JWPlayer player, String tag, String message, int adErrorCode, int vastCode)
  • Method Details

    • getTag

      public String getTag()
      Returns:
      The URL of the ad tag that encountered an error.
    • getMessage

      public String getMessage()
      Returns:
      The message describing the cause of the Ad Error.
    • getAdErrorCode

      public int getAdErrorCode()
      Returns:
      The JW Player ad error code describing the cause of the Ad Error.
    • getCode

      public int getCode()
      Returns:
      The VAST ad error code describing the cause of the Ad Error.