Class AdErrorEvent


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

      Constructors 
      Constructor Description
      AdErrorEvent​(JWPlayer player, java.lang.String tag, java.lang.String message, int adErrorCode, int vastCode)  
    • Constructor Detail

      • AdErrorEvent

        public AdErrorEvent​(@NonNull
                            JWPlayer player,
                            @NonNull
                            java.lang.String tag,
                            @NonNull
                            java.lang.String message,
                            int adErrorCode,
                            int vastCode)
    • Method Detail

      • getTag

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

        @NonNull
        public java.lang.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.