AgoraAudioRemoteState Constants Reference

Declared in AgoraEnumerates.h

AgoraAudioRemoteState

远端音频状态

Definition

typedef NS_ENUM(NSUInteger, AgoraAudioRemoteState ) {
   AgoraAudioRemoteStateStopped = 0,
   AgoraAudioRemoteStateStarting = 1,
   AgoraAudioRemoteStateDecoding = 2,
   AgoraAudioRemoteStateFrozen = 3,
   AgoraAudioRemoteStateFailed = 4,
};

Constants

AgoraAudioRemoteStateStopped

0: 远端音频流默认初始状态。在 AgoraAudioRemoteReasonLocalMuted(3)AgoraAudioRemoteReasonRemoteMuted(5)AgoraAudioRemoteReasonRemoteOffline(7) 的情况下,会报告该状态。

Declared In AgoraEnumerates.h.

AgoraAudioRemoteStateStarting

1: 本地用户已接收远端音频首包。

Declared In AgoraEnumerates.h.

AgoraAudioRemoteStateDecoding

2: 远端音频流正在解码,正常播放。在 AgoraAudioRemoteReasonNetworkRecovery(2)AgoraAudioRemoteReasonLocalUnmuted(4)AgoraAudioRemoteReasonRemoteUnmuted(6) 的情况下,会报告该状态。

Declared In AgoraEnumerates.h.

AgoraAudioRemoteStateFrozen

3: 远端音频流卡顿。在 AgoraAudioRemoteReasonNetworkCongestion(1) 的情况下,会报告该状态。

Declared In AgoraEnumerates.h.

AgoraAudioRemoteStateFailed

4: 远端音频流播放失败。在 AgoraAudioRemoteReasonInternal(0) 的情况下,会报告该状态。

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h