Enum ZegoStreamResourceSwitchMode

    • Enum Constant Detail

      • DEFAULT

        public static final ZegoStreamResourceSwitchMode DEFAULT
        Default mode. The SDK will automatically select the streaming resource according to the parameters set by the player config and the ready-made background configuration.
      • KEEP_ORIGINAL

        public static final ZegoStreamResourceSwitchMode KEEP_ORIGINAL
        Keep using original resource when publishing, not switch to RTC resource.
    • Method Detail

      • values

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

        public static ZegoStreamResourceSwitchMode 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()