ZegoScreenCaptureExceptionType enum

移动端屏幕采集异常类型。(目前仅适用于 Android 平台)

Inheritance
  • Object
  • Enum
  • ZegoScreenCaptureExceptionType

Constructors

ZegoScreenCaptureExceptionType()
const

Values

Unknown → const ZegoScreenCaptureExceptionType

未知的异常类型。

VideoNotSupported → const ZegoScreenCaptureExceptionType

视频采集系统版本不支持。仅适用于 Android API 级别为 21 及以上,即 Android 5 及以上。

AudioNotSupported → const ZegoScreenCaptureExceptionType

音频采集系统版本不支持。仅适用于 Android API 级别为 29 及以上,即 Android 10 及以上。

AudioCreateFailed → const ZegoScreenCaptureExceptionType

音频录制对象创建失败。可能原因:1. 没有开启音频录制权限; 2.音频录制分配内存不足; 3. AudioRecord 创建失败。

MediaProjectionPermissionDenied → const ZegoScreenCaptureExceptionType

MediaProjection 申请动态权限被拒绝。

NotStartCapture → const ZegoScreenCaptureExceptionType

没有启动采集。需要先 startScreenCapture 开始采集。

AlreadyStarted → const ZegoScreenCaptureExceptionType

已经开始采集,重复调用失败。需要先 stopScreenCapture 停止采集。

ForegroundServiceFailed → const ZegoScreenCaptureExceptionType

开启前台服务失败。

SourceNotSpecified → const ZegoScreenCaptureExceptionType

开始屏幕采集前需要调用 setVideoSourcesetAudioSource 指定视频和音频源位 ScreenCapture

SystemError → const ZegoScreenCaptureExceptionType

系统错误异常。比如内存不足等。

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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.
[Unknown, VideoNotSupported, AudioNotSupported, AudioCreateFailed, MediaProjectionPermissionDenied, NotStartCapture, AlreadyStarted, ForegroundServiceFailed, SourceNotSpecified, SystemError]