AgoraAudioMixingReasonCode Constants Reference
Declared in | AgoraEnumerates.h |
---|---|
Availability | 3.4.0 |
AgoraAudioMixingReasonCode
音乐文件播放状态改变的原因。在 localAudioMixingStateDidChanged 回调中报告。
Definition
typedef NS_ENUM(NSInteger, AgoraAudioMixingReasonCode ) {
AgoraAudioMixingReasonCanNotOpen = 701,
AgoraAudioMixingReasonTooFrequentCall = 702,
AgoraAudioMixingReasonInterruptedEOF = 703,
AgoraAudioMixingReasonStartedByUser = 720,
AgoraAudioMixingReasonOneLoopCompleted = 721,
AgoraAudioMixingReasonStartNewLoop = 722,
AgoraAudioMixingReasonAllLoopsCompleted = 723,
AgoraAudioMixingReasonStoppedByUser = 724,
AgoraAudioMixingReasonPausedByUser = 725,
AgoraAudioMixingReasonResumedByUser = 726,
};
Constants
AgoraAudioMixingReasonCanNotOpen
-
701: 音乐文件打开出错。例如,本地音乐文件不存在、文件格式不支持或无法访问在线音乐文件 URL。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonTooFrequentCall
-
702: 音乐文件打开太频繁。如需多次调用 startAudioMixing,请确保调用间隔大于 500 ms。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonInterruptedEOF
-
703: 音乐文件播放中断。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonStartedByUser
-
720: 成功调用 startAudioMixing 播放音乐文件。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonOneLoopCompleted
-
721: 音乐文件完成一次循环播放。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonStartNewLoop
-
722: 音乐文件开始新的一次循环播放。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonAllLoopsCompleted
-
723: 音乐文件完成所有循环播放。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonStoppedByUser
-
724: 成功调用 stopAudioMixing 停止播放音乐文件。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonPausedByUser
-
725: 成功调用 pauseAudioMixing 暂停播放音乐文件。
Declared In
AgoraEnumerates.h
. AgoraAudioMixingReasonResumedByUser
-
726: 成功调用 resumeAudioMixing 恢复播放音乐文件。
Declared In
AgoraEnumerates.h
.
Availability
3.4.0
Declared In
AgoraEnumerates.h