Enum ZegoPlayerState

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

    public enum ZegoPlayerState
    extends java.lang.Enum<ZegoPlayerState>
    Playing stream status.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NO_PLAY
      The state of the flow is not played, and it is in this state before the stream is played.
      PLAY_REQUESTING
      The state that the stream is being requested for playing.
      PLAYING
      The state that the stream is being playing, entering the state indicates that the stream has been successfully played, and the user can communicate normally.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ZegoPlayerState getZegoPlayerState​(int value)  
      int value()  
      static ZegoPlayerState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZegoPlayerState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NO_PLAY

        public static final ZegoPlayerState NO_PLAY
        The state of the flow is not played, and it is in this state before the stream is played. If the steady flow anomaly occurs during the playing process, such as AppID or Token are incorrect, it will enter this state.
      • PLAY_REQUESTING

        public static final ZegoPlayerState PLAY_REQUESTING
        The state that the stream is being requested for playing. After the [startPlayingStream] function is successfully called, it will enter the state. The UI is usually displayed through this state. If the connection is interrupted due to poor network quality, the SDK will perform an internal retry and will return to the requesting state.
      • PLAYING

        public static final ZegoPlayerState PLAYING
        The state that the stream is being playing, entering the state indicates that the stream has been successfully played, and the user can communicate normally.
    • Method Detail

      • values

        public static ZegoPlayerState[] 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 (ZegoPlayerState c : ZegoPlayerState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoPlayerState 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()
      • getZegoPlayerState

        public static ZegoPlayerState getZegoPlayerState​(int value)