ZegoScreenCaptureExceptionType enum

Screen capture source exception type. (only for Android and iOS)

Inheritance

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 startScreenCapture first.

AlreadyStarted → const ZegoScreenCaptureExceptionType

Screen capture has already started, repeated calls failed. You need to stop the capture with stopScreenCapture first.

ForegroundServiceFailed → const ZegoScreenCaptureExceptionType

Failed to start the foreground service.

SourceNotSpecified → const ZegoScreenCaptureExceptionType

Before starting screen capture, you need to call setVideoSource, setAudioSource to specify the video and audio source ScreenCapture.

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.