Enum ZegoStreamEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZegoStreamEvent>

    public enum ZegoStreamEvent
    extends java.lang.Enum<ZegoStreamEvent>
    Publish or play stream event
    • Enum Constant Detail

      • PUBLISH_START

        public static final ZegoStreamEvent PUBLISH_START
        Start publishing stream
      • PUBLISH_SUCCESS

        public static final ZegoStreamEvent PUBLISH_SUCCESS
        The first publish stream was successful
      • PUBLISH_FAIL

        public static final ZegoStreamEvent PUBLISH_FAIL
        Failed to publish stream for the first time
      • RETRY_PUBLISH_START

        public static final ZegoStreamEvent RETRY_PUBLISH_START
        Start retrying publishing stream
      • RETRY_PUBLISH_SUCCESS

        public static final ZegoStreamEvent RETRY_PUBLISH_SUCCESS
        Retry publishing stream successfully
      • RETRY_PUBLISH_FAIL

        public static final ZegoStreamEvent RETRY_PUBLISH_FAIL
        Failed to retry publishing stream
      • PUBLISH_END

        public static final ZegoStreamEvent PUBLISH_END
        End of publishing stream
      • PLAY_START

        public static final ZegoStreamEvent PLAY_START
        Start playing stream
      • PLAY_SUCCESS

        public static final ZegoStreamEvent PLAY_SUCCESS
        The first play stream was successful
      • PLAY_FAIL

        public static final ZegoStreamEvent PLAY_FAIL
        Failed to play stream for the first time
      • RETRY_PLAY_START

        public static final ZegoStreamEvent RETRY_PLAY_START
        Start retrying playing stream
      • RETRY_PLAY_SUCCESS

        public static final ZegoStreamEvent RETRY_PLAY_SUCCESS
        Retry playing stream successfully
      • RETRY_PLAY_FAIL

        public static final ZegoStreamEvent RETRY_PLAY_FAIL
        Failed to retry playing stream
      • PLAY_END

        public static final ZegoStreamEvent PLAY_END
        End of playing stream
    • Method Detail

      • values

        public static ZegoStreamEvent[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZegoStreamEvent c : ZegoStreamEvent.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoStreamEvent valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
      • getZegoStreamEvent

        public static ZegoStreamEvent getZegoStreamEvent​(int value)