AgoraChannelMediaRelayState Constants Reference

Declared in AgoraEnumerates.h

AgoraChannelMediaRelayState

跨频道媒体流转发状态码

Definition

typedef NS_ENUM(NSInteger, AgoraChannelMediaRelayState ) {
   AgoraChannelMediaRelayStateIdle = 0,
   AgoraChannelMediaRelayStateConnecting = 1,
   AgoraChannelMediaRelayStateRunning = 2,
   AgoraChannelMediaRelayStateFailure = 3,
};

Constants

AgoraChannelMediaRelayStateIdle

0: 初始状态。在成功调用 stopChannelMediaRelay 停止跨频道媒体流转发后, channelMediaRelayStateDidChange 会回调该状态。

Declared In AgoraEnumerates.h.

AgoraChannelMediaRelayStateConnecting

1: SDK 尝试跨频道。

Declared In AgoraEnumerates.h.

AgoraChannelMediaRelayStateRunning

2: 源频道主播成功加入目标频道。

Declared In AgoraEnumerates.h.

AgoraChannelMediaRelayStateFailure

3: 发生异常,详见 error 中提示的错误信息。

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h