AgoraRtmpStreamingErrorCode Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraRtmpStreamingErrorCode
The detailed error information for streaming.
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: The RTMP or RTMPS streaming publishes successfully.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeInvalidParameters
-
1: Invalid argument used. If, for example, you do not call the setLiveTranscoding method to configure the LiveTranscoding parameters before calling the addPublishStreamUrl method, the SDK returns this error. Check whether you set the parameters in the setLiveTranscoding method properly.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeEncryptedStreamNotAllowed
-
2: The RTMP or RTMPS streaming is encrypted and cannot be published.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeConnectionTimeout
-
3: Timeout for the RTMP or RTMPS streaming. Call the addPublishStreamUrl method to publish the streaming again.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeInternalServerError
-
4: An error occurs in Agora’s streaming server. Call the addPublishStreamUrl method to publish the streaming again.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeRtmpServerError
-
5: An error occurs in the CDN server.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeTooOften
-
6: Reserved.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeReachLimit
-
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeNotAuthorized
-
8: The host manipulates other hosts' URLs. Check your app logic.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeStreamNotFound
-
9: Agora’s server fails to find the RTMP or RTMPS streaming.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeFormatNotSupported
-
10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorNotBroadcaster
-
11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorTranscodingNoMixStream
-
13: The
updateRtmpTranscoding
orsetLiveTranscoding
method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic.Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorNetDown
-
14: Errors occurred in the host’s network.
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamPublishErrorInvalidAppId
-
15: Your App ID does not have permission to use the CDN live streaming function. Refer to Prerequisites to enable the CDN live streaming permission.
Available in v3.6.0
Declared In
AgoraEnumerates.h
. AgoraRtmpStreamingErrorCodeUnpublishOK
-
The streaming has been stopped normally. After you call removePublishStreamUrl to stop streaming, the SDK returns this value.
Available in v3.4.5
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h