RTMP_STREAM_PUBLISH_REASON

Reasons for changes in the status of RTMP or RTMPS streaming.

Enumerator

RTMP_STREAM_PUBLISH_REASON_OK
0: The RTMP or RTMPS streaming has not started or has ended.
RTMP_STREAM_PUBLISH_REASON_INVALID_ARGUMENT
1: Invalid argument used. Check the parameter setting.
RTMP_STREAM_PUBLISH_REASON_ENCRYPTED_STREAM_NOT_ALLOWED
2: The RTMP or RTMPS streaming is encrypted and cannot be published.
RTMP_STREAM_PUBLISH_REASON_CONNECTION_TIMEOUT
3: Timeout for the RTMP or RTMPS streaming.
RTMP_STREAM_PUBLISH_REASON_INTERNAL_SERVER_ERROR
4: An error occurs in Agora's streaming server.
RTMP_STREAM_PUBLISH_REASON_RTMP_SERVER_ERROR
5: An error occurs in the CDN server.
RTMP_STREAM_PUBLISH_REASON_TOO_OFTEN
6: The RTMP or RTMPS streaming publishes too frequently.
RTMP_STREAM_PUBLISH_REASON_REACH_LIMIT
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
RTMP_STREAM_PUBLISH_REASON_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_REASON_STREAM_NOT_FOUND
9: Agora's server fails to find the RTMP or RTMPS streaming.
RTMP_STREAM_PUBLISH_REASON_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_REASON_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_REASON_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_REASON_NET_DOWN
14: Errors occurred in the host's network.
RTMP_STREAM_PUBLISH_REASON_INVALID_PRIVILEGE
16: Your project does not have permission to use streaming services.
RTMP_STREAM_UNPUBLISH_REASON_OK
100: The streaming has been stopped normally. After you stop the Media Push, the SDK returns this value.