AgoraLocalVideoStreamError Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraLocalVideoStreamError
本地视频出错原因
Definition
typedef NS_ENUM(NSInteger, AgoraLocalVideoStreamError ) {
AgoraLocalVideoStreamErrorOK = 0,
AgoraLocalVideoStreamErrorFailure = 1,
AgoraLocalVideoStreamErrorDeviceNoPermission = 2,
AgoraLocalVideoStreamErrorDeviceBusy = 3,
AgoraLocalVideoStreamErrorCaptureFailure = 4,
AgoraLocalVideoStreamErrorEncodeFailure = 5,
AgoraLocalVideoStreamErrorCaptureInBackGround = 6,
AgoraLocalVideoStreamErrorCaptureMultipleForegroundApps = 7,
AgoraLocalVideoStreamErrorCaptureNoDeviceFound = 8,
AgoraLocalVideoStreamErrorCaptureDeviceDisconnected = 9,
AgoraLocalVideoStreamErrorCaptureDeviceInvalidId = 10,
AgoraLocalVideoStreamErrorScreenCaptureWindowMinimized = 11,
AgoraLocalVideoStreamErrorScreenCaptureWindowClosed = 12,
AgoraLocalVideoStreamErrorExtensionCaptureStarted = 13,
AgoraLocalVideoStreamErrorExtensionCaptureStoped = 14,
AgoraLocalVideoStreamErrorExtensionCaptureDisconnected = 15,
};
Constants
AgoraLocalVideoStreamErrorOK
-
0: 本地视频状态正常。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorFailure
-
1: 出错原因不明确。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorDeviceNoPermission
-
2: 没有权限启动本地视频采集设备。请提示用户开启权限再重新加入频道。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorDeviceBusy
-
3: 本地视频采集设备正在使用中。请检查摄像头是否被其他应用占用。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureFailure
-
4: 本地视频采集失败。请检查视频采集设备是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorEncodeFailure
-
5: 本地视频编码失败。
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureInBackGround
-
6: (仅适用于 iOS)应用处于后台。请提示用户应用处于后台时,无法正常进行视频采集。
Available in v3.3.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureMultipleForegroundApps
-
7: (仅支持 iOS)当前应用窗口处于侧拉、分屏、画中画模式,且其他应用正占用摄像头时,SDK 会报告该错误码。请提示用户应用窗口处于侧拉、分屏、画中画模式,且其他应用正占用摄像头时,无法正常进行视频采集。
Available in v3.3.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureNoDeviceFound
-
8: 找不到本地视频采集设备。请检查摄像头是否与设备连接正常,检查摄像头是否正常工作,或者尝试重新加入频道。
Available in v3.4.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureDeviceDisconnected
-
9:(仅支持 macOS)当前正在使用的外部摄像头已经断开连接(例如,被拔出)。
Available in v3.5.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorCaptureDeviceInvalidId
-
10:(仅支持 macOS)SDK 无法在视频设备列表中找到该视频设备。请检查视频设备 ID 是否有效。
Available in v3.5.2
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorScreenCaptureWindowMinimized
-
11:(仅支持 macOS)调用 startScreenCaptureByWindowId 方法共享窗口时, 共享窗口处于最小化的状态。SDK 无法共享被最小化的窗口。请在应用层对此类窗口取消最小化,例如,将窗口最大化。
Available in v3.1.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorScreenCaptureWindowClosed
-
12:(仅支持 macOS)自 3.6.2 起,该错误码仅表示通过窗口 ID 共享的窗口已关闭。
Available in v3.2.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorExtensionCaptureStarted
-
13:(仅适用于 iOS)屏幕共享 Extension 进程开启。
Available in v3.7.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorExtensionCaptureStoped
-
14:(仅适用于 iOS)屏幕共享 Extension 进程结束。
Available in v3.7.0
Declared In
AgoraEnumerates.h
. AgoraLocalVideoStreamErrorExtensionCaptureDisconnected
-
15:(仅适用于 iOS)屏幕共享 Extension 进程异常退出。
Available in v3.7.0
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h