Enum Class Constants.MediaPlayerEvent

java.lang.Object
java.lang.Enum<Constants.MediaPlayerEvent>
io.agora.mediaplayer.Constants.MediaPlayerEvent
All Implemented Interfaces:
Serializable, Comparable<Constants.MediaPlayerEvent>, Constable
Enclosing class:
Constants

public static enum Constants.MediaPlayerEvent extends Enum<Constants.MediaPlayerEvent>
  • Enum Constant Details

    • PLAYER_EVENT_UNKNOWN

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_UNKNOWN
      -1: An unknown event.
    • PLAYER_EVENT_SEEK_BEGIN

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_BEGIN
      0: The player begins to seek to a new playback position.
    • PLAYER_EVENT_SEEK_COMPLETE

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_COMPLETE
      1: The player finishes seeking to a new playback position.
    • PLAYER_EVENT_SEEK_ERROR

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SEEK_ERROR
      2: An error occurs when seeking to a new playback position.
    • PLAYER_EVENT_AUDIO_TRACK_CHANGED

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_AUDIO_TRACK_CHANGED
      5: The audio track used by the player has been changed.
    • PLAYER_EVENT_BUFFER_LOW

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_BUFFER_LOW
      6: The currently buffered data is not enough to support playback.
    • PLAYER_EVENT_BUFFER_RECOVER

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_BUFFER_RECOVER
      7: The currently buffered data is just enough to support playback.
    • PLAYER_EVENT_FREEZE_START

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_FREEZE_START
      8: The audio or video playback freezes.
    • PLAYER_EVENT_FREEZE_STOP

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_FREEZE_STOP
      9: The audio or video playback resumes without freezing.
    • PLAYER_EVENT_SWITCH_BEGIN

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_BEGIN
      10: The player starts switching the media resource.
    • PLAYER_EVENT_SWITCH_COMPLETE

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_COMPLETE
      11: Media resource switching is complete.
    • PLAYER_EVENT_SWITCH_ERROR

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_SWITCH_ERROR
      12: Media resource switching error.
    • PLAYER_EVENT_FIRST_DISPLAYED

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_FIRST_DISPLAYED
      13: The first video frame is rendered.
    • PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT
      14: The cached media files reach the limit in number.
    • PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE
      15: The cached media files reach the limit in aggregate storage space.
    • PLAYER_EVENT_TRY_OPEN_START

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_START
      Triggered when a retry is required to open the media
    • PLAYER_EVENT_TRY_OPEN_SUCCEED

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_SUCCEED
      Triggered when the retry to open the media is successful
    • PLAYER_EVENT_TRY_OPEN_FAILED

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_TRY_OPEN_FAILED
      Triggered when retrying to open media fails
    • PLAYER_EVENT_HTTP_REDIRECT

      public static final Constants.MediaPlayerEvent PLAYER_EVENT_HTTP_REDIRECT
      Triggered when an http redirect occurs
  • Method Details

    • values

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

      public static Constants.MediaPlayerEvent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(Constants.MediaPlayerEvent type)
    • fromNativeIndex

      public static Constants.MediaPlayerEvent fromNativeIndex(int nativeIndex)
    • getEventByValue

      public static Constants.MediaPlayerEvent getEventByValue(int value)