AgoraVideoRemoteStateReason Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraVideoRemoteStateReason
远端视频流状态切换原因
Definition
typedef NS_ENUM(NSUInteger, AgoraVideoRemoteStateReason ) {
AgoraVideoRemoteStateReasonInternal = 0,
AgoraVideoRemoteStateReasonNetworkCongestion = 1,
AgoraVideoRemoteStateReasonNetworkRecovery = 2,
AgoraVideoRemoteStateReasonLocalMuted = 3,
AgoraVideoRemoteStateReasonLocalUnmuted = 4,
AgoraVideoRemoteStateReasonRemoteMuted = 5,
AgoraVideoRemoteStateReasonRemoteUnmuted = 6,
AgoraVideoRemoteStateReasonRemoteOffline = 7,
AgoraVideoRemoteStateReasonAudioFallback = 8,
AgoraVideoRemoteStateReasonAudioFallbackRecovery = 9,
AgoraVideoRemoteStateReasonRemoteSDKInBackGround = 10,
};
Constants
AgoraVideoRemoteStateReasonInternal
-
0: 视频状态发生改变时,会报告该原因。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonNetworkCongestion
-
1:远端用户的网络阻塞。如果网络状态持续不佳,请在应用中弹框显示“对方的网络状态不佳”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonNetworkRecovery
-
2: 远端用户的网络恢复正常。请在应用中弹框显示“对方的网络状态恢复正常”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonLocalMuted
-
3: 本地用户停止接收远端视频流或本地用户禁用视频模块。请关闭用于渲染该远端用户视频的窗口并在应用中弹框显示“你已停止接收对方视频”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonLocalUnmuted
-
4: 本地用户恢复接收远端视频流或本地用户启动视频模块。请恢复用于渲染该远端用户视频的窗口并在应用中弹框显示“你已恢复接收对方视频”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonRemoteMuted
-
5: 远端用户停止发送视频流或远端用户禁用视频模块。请关闭用于渲染该远端用户视频的窗口,在应用界面的用户列表中用图标显示该远端用户已停止发送视频,在应用中弹框显示“对应已关闭摄像头”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonRemoteUnmuted
-
6: 远端用户恢复发送视频流或远端用户启用视频模块。请恢复用于渲染该远端用户视频的窗口,在应用界面的用户列表中用图标显示该远端用户已恢复发送视频,在应用中弹框显示“对应已开启摄像头”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonRemoteOffline
-
7: 远端用户离开频道。请关闭用于渲染该远端用户视频的窗口,在应用界面的用户列表中移除该远端用户。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonAudioFallback
-
8: 弱网情况下,远端音视频流回退为音频流。请关闭用户渲染该远端用户视频的窗口,在应用中弹框显示“对方网络状态不佳”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonAudioFallbackRecovery
-
9: 网络情况改善时,远端音频流恢复为音视频流。请恢复用于渲染该远端用户视频的窗口,在应用中弹框显示“对方网络状态恢复正常”。
Declared In
AgoraEnumerates.h
. AgoraVideoRemoteStateReasonRemoteSDKInBackGround
-
10: 当远端用户使用 iOS 应用且应用处于后台时,SDK 会向本地用户报告该错误码。此时,本地用户看到远端用户视频卡住。
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h