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 publishes successfully.
- RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT
- 1: Invalid argument used. Please check the parameter setting. For example, if you do not call SetLiveTranscoding to set the transcoding parameters before calling AddPublishStreamUrl, the SDK returns this error.
- 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. Call the AddPublishStreamUrl method to publish the streaming again.
- RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR
- 4: An error occurs in Agora's streaming server. Call the AddPublishStreamUrl method to publish the streaming again.
- 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
- The UpdateRtmpTranscoding or SetLiveTranscoding 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_APPID
- 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.
- RTMP_STREAM_UNPUBLISH_ERROR_OK
- 100: The streaming has been stopped normally. After you call RemovePublishStreamUrl to stop streaming, the SDK returns this value.