Enum ZegoRemoteDeviceState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BY_SYSTEM_PRESSURE
      The system is under high load pressure and may cause abnormal equipment.
      DISABLE
      The remote user calls [enableCamera] or [enableAudioCaptureDevice] to disable the camera or microphone.
      GENERIC_ERROR
      General device error
      IN_BACKGROUND
      There are multiple apps at the same time in the foreground, such as the iPad app split screen, the system will prohibit all apps from using the camera.
      IN_USE_BY_OTHER
      The device is occupied
      INTERRUPTION
      The device is interrupted, such as a phone call interruption, etc.
      INVALID_ID
      Invalid device ID
      MULTI_FOREGROUND_APP
      CDN server actively disconnected
      MUTE
      The remote user actively calls [muteMicrophone] or [mutePublishStreamAudio] or [mutePublishStreamVideo] to stop publish the audio or video stream.
      NO_AUTHORIZATION
      No permission
      NOT_SUPPORT
      The remote device is not supported to publish the device state.
      OPEN
      Device on
      REBOOT_REQUIRED
      The system needs to be restarted
      SYSTEM_MEDIA_SERVICES_LOST
      System media services stop, such as under the iOS platform, when the system detects that the current pressure is huge (such as playing a lot of animation), it is possible to disable all media related services.
      UNPLUGGED
      The device is not plugged in or unplugged
      ZERO_FPS
      Captured frame rate is 0
    • Enum Constant Detail

      • UNPLUGGED

        public static final ZegoRemoteDeviceState UNPLUGGED
        The device is not plugged in or unplugged
      • REBOOT_REQUIRED

        public static final ZegoRemoteDeviceState REBOOT_REQUIRED
        The system needs to be restarted
      • SYSTEM_MEDIA_SERVICES_LOST

        public static final ZegoRemoteDeviceState SYSTEM_MEDIA_SERVICES_LOST
        System media services stop, such as under the iOS platform, when the system detects that the current pressure is huge (such as playing a lot of animation), it is possible to disable all media related services.
      • DISABLE

        public static final ZegoRemoteDeviceState DISABLE
        The remote user calls [enableCamera] or [enableAudioCaptureDevice] to disable the camera or microphone.
      • MUTE

        public static final ZegoRemoteDeviceState MUTE
        The remote user actively calls [muteMicrophone] or [mutePublishStreamAudio] or [mutePublishStreamVideo] to stop publish the audio or video stream.
      • INTERRUPTION

        public static final ZegoRemoteDeviceState INTERRUPTION
        The device is interrupted, such as a phone call interruption, etc.
      • IN_BACKGROUND

        public static final ZegoRemoteDeviceState IN_BACKGROUND
        There are multiple apps at the same time in the foreground, such as the iPad app split screen, the system will prohibit all apps from using the camera.
      • MULTI_FOREGROUND_APP

        public static final ZegoRemoteDeviceState MULTI_FOREGROUND_APP
        CDN server actively disconnected
      • BY_SYSTEM_PRESSURE

        public static final ZegoRemoteDeviceState BY_SYSTEM_PRESSURE
        The system is under high load pressure and may cause abnormal equipment.
      • NOT_SUPPORT

        public static final ZegoRemoteDeviceState NOT_SUPPORT
        The remote device is not supported to publish the device state.
    • Method Detail

      • values

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

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