Package im.zego.zegoexpress.constants
Enum ZegoScreenCaptureExceptionType
- java.lang.Object
-
- java.lang.Enum<ZegoScreenCaptureExceptionType>
-
- im.zego.zegoexpress.constants.ZegoScreenCaptureExceptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoScreenCaptureExceptionType>
public enum ZegoScreenCaptureExceptionType extends java.lang.Enum<ZegoScreenCaptureExceptionType>
Screen capture source exception type. (only for Android)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_STARTED
Screen capture has already started, repeated calls failed.AUDIO_CREATE_FAILED
Audio recording object creation failed.AUDIO_NOT_SUPPORTED
The capture target fails, such as the monitor is unplugged and the window is closed.FOREGROUND_SERVICE_FAILED
Failed to start the foreground service.MEDIA_PROJECTION_PERMISSION_DENIED
MediaProjection request for dynamic permissions was denied.NOT_START_CAPTURE
Capture is not started.SOURCE_NOT_SPECIFIED
Before starting screen capture, you need to call [setVideoSource], [setAudioSource] to specify the video and audio source `ScreenCapture`.SYSTEM_ERROR
System error exception.UNKNOWN
Unknown exception type.VIDEO_NOT_SUPPORTED
The video capture system version does not support it, and Android only supports 5.0 and above.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoScreenCaptureExceptionType
getZegoScreenCaptureExceptionType(int value)
int
value()
static ZegoScreenCaptureExceptionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoScreenCaptureExceptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ZegoScreenCaptureExceptionType UNKNOWN
Unknown exception type.
-
VIDEO_NOT_SUPPORTED
public static final ZegoScreenCaptureExceptionType VIDEO_NOT_SUPPORTED
The video capture system version does not support it, and Android only supports 5.0 and above.
-
AUDIO_NOT_SUPPORTED
public static final ZegoScreenCaptureExceptionType AUDIO_NOT_SUPPORTED
The capture target fails, such as the monitor is unplugged and the window is closed.
-
AUDIO_CREATE_FAILED
public static final ZegoScreenCaptureExceptionType AUDIO_CREATE_FAILED
Audio recording object creation failed. Possible reasons: 1. The audio recording permission is not enabled; 2. The allocated memory for audio recording is insufficient; 3. The creation of AudioRecord fails.
-
MEDIA_PROJECTION_PERMISSION_DENIED
public static final ZegoScreenCaptureExceptionType MEDIA_PROJECTION_PERMISSION_DENIED
MediaProjection request for dynamic permissions was denied.
-
NOT_START_CAPTURE
public static final ZegoScreenCaptureExceptionType NOT_START_CAPTURE
Capture is not started. Need to start capturing with [startScreenCapture] first.
-
ALREADY_STARTED
public static final ZegoScreenCaptureExceptionType ALREADY_STARTED
Screen capture has already started, repeated calls failed. You need to stop the capture with [stopScreenCapture] first.
-
FOREGROUND_SERVICE_FAILED
public static final ZegoScreenCaptureExceptionType FOREGROUND_SERVICE_FAILED
Failed to start the foreground service.
-
SOURCE_NOT_SPECIFIED
public static final ZegoScreenCaptureExceptionType SOURCE_NOT_SPECIFIED
Before starting screen capture, you need to call [setVideoSource], [setAudioSource] to specify the video and audio source `ScreenCapture`.
-
SYSTEM_ERROR
public static final ZegoScreenCaptureExceptionType SYSTEM_ERROR
System error exception. For example, low memory, etc.
-
-
Method Detail
-
values
public static ZegoScreenCaptureExceptionType[] 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 (ZegoScreenCaptureExceptionType c : ZegoScreenCaptureExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoScreenCaptureExceptionType 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()
-
getZegoScreenCaptureExceptionType
public static ZegoScreenCaptureExceptionType getZegoScreenCaptureExceptionType(int value)
-
-