ZegoScreenCaptureExceptionType enum
Screen capture source exception type. (only for Android and iOS)
Constructors
- ZegoScreenCaptureExceptionType()
-
const
Values
- Unknown → const ZegoScreenCaptureExceptionType
-
Unknown exception type.
- VideoNotSupported → const ZegoScreenCaptureExceptionType
-
The video capture system version does not support it, and Android only supports 5.0 and above.
- AudioNotSupported → const ZegoScreenCaptureExceptionType
-
The capture target fails, such as the monitor is unplugged and the window is closed.
- AudioCreateFailed → const ZegoScreenCaptureExceptionType
-
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.
- MediaProjectionPermissionDenied → const ZegoScreenCaptureExceptionType
-
MediaProjection request for dynamic permissions was denied.
- NotStartCapture → const ZegoScreenCaptureExceptionType
-
Capture is not started. Need to start capturing with
startScreenCapturefirst. - AlreadyStarted → const ZegoScreenCaptureExceptionType
-
Screen capture has already started, repeated calls failed. You need to stop the capture with
stopScreenCapturefirst. - ForegroundServiceFailed → const ZegoScreenCaptureExceptionType
-
Failed to start the foreground service.
- SourceNotSpecified → const ZegoScreenCaptureExceptionType
-
Before starting screen capture, you need to call
setVideoSource,setAudioSourceto specify the video and audio sourceScreenCapture. - SystemError → const ZegoScreenCaptureExceptionType
-
System error exception. For example, low memory, etc.
- ExceptionInterrupted → const ZegoScreenCaptureExceptionType
-
Exception interrupted. For example, the user clicks the stop button in the control center during the capture process.
- AudioDeviceException → const ZegoScreenCaptureExceptionType
-
Audio device exception. You need to restart the capture.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ZegoScreenCaptureExceptionType> - A constant List of the values in this enum, in order of their declaration.