Package im.zego.zegoexpress.constants
Enum ZegoRemoteDeviceState
- java.lang.Object
-
- java.lang.Enum<ZegoRemoteDeviceState>
-
- im.zego.zegoexpress.constants.ZegoRemoteDeviceState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoRemoteDeviceState>
public enum ZegoRemoteDeviceState extends java.lang.Enum<ZegoRemoteDeviceState>
Remote device status.
-
-
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 errorIN_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 occupiedINTERRUPTION
The device is interrupted, such as a phone call interruption, etc.INVALID_ID
Invalid device IDMULTI_FOREGROUND_APP
CDN server actively disconnectedMUTE
The remote user actively calls [muteMicrophone] or [mutePublishStreamAudio] or [mutePublishStreamVideo] to stop publish the audio or video stream.NO_AUTHORIZATION
No permissionNOT_SUPPORT
The remote device is not supported to publish the device state.OPEN
Device onREBOOT_REQUIRED
The system needs to be restartedSYSTEM_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 unpluggedZERO_FPS
Captured frame rate is 0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoRemoteDeviceState
getZegoRemoteDeviceState(int value)
int
value()
static ZegoRemoteDeviceState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoRemoteDeviceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final ZegoRemoteDeviceState OPEN
Device on
-
GENERIC_ERROR
public static final ZegoRemoteDeviceState GENERIC_ERROR
General device error
-
INVALID_ID
public static final ZegoRemoteDeviceState INVALID_ID
Invalid device ID
-
NO_AUTHORIZATION
public static final ZegoRemoteDeviceState NO_AUTHORIZATION
No permission
-
ZERO_FPS
public static final ZegoRemoteDeviceState ZERO_FPS
Captured frame rate is 0
-
IN_USE_BY_OTHER
public static final ZegoRemoteDeviceState IN_USE_BY_OTHER
The device is occupied
-
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 namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoRemoteDeviceState
public static ZegoRemoteDeviceState getZegoRemoteDeviceState(int value)
-
-