AgoraRtmpStreamingErrorCode Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraRtmpStreamingErrorCode
推流错误信息
Definition
typedef NS_ENUM(NSUInteger, AgoraRtmpStreamingErrorCode ) {
AgoraRtmpStreamingErrorCodeOK = 0,
AgoraRtmpStreamingErrorCodeInvalidParameters = 1,
AgoraRtmpStreamingErrorCodeEncryptedStreamNotAllowed = 2,
AgoraRtmpStreamingErrorCodeConnectionTimeout = 3,
AgoraRtmpStreamingErrorCodeInternalServerError = 4,
AgoraRtmpStreamingErrorCodeRtmpServerError = 5,
AgoraRtmpStreamingErrorCodeTooOften = 6,
AgoraRtmpStreamingErrorCodeReachLimit = 7,
AgoraRtmpStreamingErrorCodeNotAuthorized = 8,
AgoraRtmpStreamingErrorCodeStreamNotFound = 9,
AgoraRtmpStreamingErrorCodeFormatNotSupported = 10,
AgoraRtmpStreamPublishErrorNotBroadcaster = 11,
AgoraRtmpStreamPublishErrorTranscodingNoMixStream = 13,
AgoraRtmpStreamPublishErrorNetDown = 14,
AgoraRtmpStreamPublishErrorInvalidAppId = 15,
AgoraRtmpStreamingErrorCodeUnpublishOK = 100,
};
Constants
AgoraRtmpStreamingErrorCodeOK
-
0: 推流成功
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeInvalidParameters
-
1: 参数无效。请检查输入参数是否正确。例如如果你在调用 addPublishStreamUrl 前没有调用 setLiveTranscoding 设置转码参数,SDK 会返回该错误。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeEncryptedStreamNotAllowed
-
2: 推流已加密,不能推流。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeConnectionTimeout
-
3: 推流超时未成功。可调用 addPublishStreamUrl 重新推流。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeInternalServerError
-
4: 推流服务器出现错误。请调用 addPublishStreamUrl 重新推流。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeRtmpServerError
-
5: CDN 服务器出现错误。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeTooOften
-
6: 预留参数。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeReachLimit
-
7: 单个主播的推流地址数目达到上限 10。请删掉一些不用的推流地址再增加推流地址。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeNotAuthorized
-
8: 主播操作不属于自己的流。例如更新其他主播的流参数、停止其他主播的流。请检查 App 逻辑。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeStreamNotFound
-
9: 服务器未找到这个流。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeFormatNotSupported
-
10: 推流地址格式有错误。请检查推流地址格式是否正确。
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorNotBroadcaster
-
11: 用户角色不是主播,该用户无法使用推流功能。请检查你的应用代码逻辑。
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorTranscodingNoMixStream
-
13: 非转码推流情况下,调用了
updateRtmpTranscoding
或setLiveTranscoding
方法更新转码属性。请检查你的应用代码逻辑。Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorNetDown
-
14: 主播的网络出错。
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorInvalidAppId
-
15: 你的 App ID 没有使用声网推流服务的权限。请参考前提条件开启推流服务。
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeUnpublishOK
-
100: 推流已正常结束。当你调用 removePublishStreamUrl 结束推流后,SDK 会返回该值。
Available in v3.4.5
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h