Enum MediaError

java.lang.Object
java.lang.Enum<MediaError>
com.craftmend.openaudiomc.api.media.MediaError
All Implemented Interfaces:
Serializable, Comparable<MediaError>, java.lang.constant.Constable

public enum MediaError extends Enum<MediaError>
This enum contains all possible media errors that can occur when trying to play a media file. This can be used to determine what went wrong, and to provide a better user experience.
  • Enum Constant Details

    • YOUTUBE_ERR

      public static final MediaError YOUTUBE_ERR
    • MEDIA_ERR_ABORTED

      public static final MediaError MEDIA_ERR_ABORTED
    • MEDIA_ERR_NETWORK

      public static final MediaError MEDIA_ERR_NETWORK
    • MEDIA_ERR_DECODE

      public static final MediaError MEDIA_ERR_DECODE
    • MEDIA_ERR_SRC_NOT_SUPPORTED

      public static final MediaError MEDIA_ERR_SRC_NOT_SUPPORTED
  • Method Details

    • values

      public static MediaError[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MediaError valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getExplanation

      public String getExplanation()