AgoraAudioMixingStateCode Constants Reference

Declared in AgoraEnumerates.h

AgoraAudioMixingStateCode

音乐文件播放状态。在 localAudioMixingStateDidChanged 回调中报告。

Definition

typedef NS_ENUM(NSInteger, AgoraAudioMixingStateCode ) {
   AgoraAudioMixingStatePlaying = 710,
   AgoraAudioMixingStatePaused = 711,
   AgoraAudioMixingStateStopped = 713,
   AgoraAudioMixingStateFailed = 714,
};

Constants

AgoraAudioMixingStatePlaying

710: 音乐文件正常播放。

该状态可能由以下原因导致:

  • AgoraAudioMixingReasonStartedByUser(720)
  • AgoraAudioMixingReasonOneLoopCompleted(721)
  • AgoraAudioMixingReasonStartNewLoop(722)
  • AgoraAudioMixingReasonResumedByUser(726)
  • Declared In AgoraEnumerates.h.

    AgoraAudioMixingStatePaused

    711: 音乐文件暂停播放。

    该状态由 AgoraAudioMixingReasonPausedByUser(725) 原因导致。

    Declared In AgoraEnumerates.h.

    AgoraAudioMixingStateStopped

    713: 音乐文件停止播放。

    该状态可能由以下原因导致:

  • AgoraAudioMixingReasonAllLoopsCompleted(723)
  • AgoraAudioMixingReasonStoppedByUser(724)
  • Declared In AgoraEnumerates.h.

    AgoraAudioMixingStateFailed

    714: 音乐文件播放失败。

    该状态可能由以下原因导致:

  • AgoraAudioMixingReasonCanNotOpen(701)
  • AgoraAudioMixingReasonTooFrequentCall(702)
  • AgoraAudioMixingReasonInterruptedEOF(703)
  • Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h