RTMP_STREAM_PUBLISH_ERROR_TYPE

Error codes of the RTMP or RTMPS streaming.

Enumerator

RTMP_STREAM_PUBLISH_ERROR_OK
0: The RTMP or RTMPS streaming has not started or has ended.
RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT
1: Invalid argument used. Check the parameter setting.
RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED
2: The RTMP or RTMPS streaming is encrypted and cannot be published.
RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT
3: Timeout for the RTMP or RTMPS streaming.
RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR
4: An error occurs in Agora's streaming server.
RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR
5: An error occurs in the CDN server.
RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN
6: The RTMP or RTMPS streaming publishes too frequently.
RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED
8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND
9: Agora's server fails to find the RTMP or RTMPS streaming.
RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED
10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
RTMP_STREAM_PUBLISH_ERROR_NOT_BROADCASTER
11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
RTMP_STREAM_PUBLISH_ERROR_TRANSCODING_NO_MIX_STREAM
13: The updateRtmpTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic.
RTMP_STREAM_PUBLISH_ERROR_NET_DOWN
14: Errors occurred in the host's network.
RTMP_STREAM_PUBLISH_ERROR_INVALID_PRIVILEGE
16: Your project does not have permission to use streaming services. Refer to Media Push to enable the Media Push permission.
RTMP_STREAM_UNPUBLISH_ERROR_OK
100: The streaming has been stopped normally. After you stop the Media Push, the SDK returns this value.