RTMP_STREAM_PUBLISH_REASON

The reason for RTMP or RTMPS stream state change.

Enumerations

RTMP_STREAM_PUBLISH_REASON_OK
(0): RTMP or RTMPS streaming has not started or has ended.
RTMP_STREAM_PUBLISH_REASON_INVALID_ARGUMENT
(1): Invalid parameter. Please check whether the parameter settings are correct.
RTMP_STREAM_PUBLISH_REASON_ENCRYPTED_STREAM_NOT_ALLOWED
(2): RTMP or RTMPS stream is encrypted and cannot be published.
RTMP_STREAM_PUBLISH_REASON_CONNECTION_TIMEOUT
(3): RTMP or RTMPS stream connection timed out.
RTMP_STREAM_PUBLISH_REASON_INTERNAL_SERVER_ERROR
(4): Internal error occurred on the Agora streaming server.
RTMP_STREAM_PUBLISH_REASON_RTMP_SERVER_ERROR
(5): CDN server error.
RTMP_STREAM_PUBLISH_REASON_TOO_OFTEN
(6): RTMP or RTMPS streaming is too frequent.
RTMP_STREAM_PUBLISH_REASON_REACH_LIMIT
(7): The number of URLs published by the broadcaster exceeds 10. Please delete unnecessary URLs before adding new ones.
RTMP_STREAM_PUBLISH_REASON_NOT_AUTHORIZED
(8): The broadcaster operated another broadcaster's URL, such as updating or stopping another broadcaster's stream. Please check your application logic.
RTMP_STREAM_PUBLISH_REASON_STREAM_NOT_FOUND
(9): The Agora server did not find the corresponding RTMP or RTMPS stream.
RTMP_STREAM_PUBLISH_REASON_FORMAT_NOT_SUPPORTED
(10): The RTMP or RTMPS stream address format is not supported. Please check whether the address format is correct.
RTMP_STREAM_PUBLISH_REASON_NOT_BROADCASTER
(11): The user role is not broadcaster and cannot use CDN live streaming. Please check your application logic.
RTMP_STREAM_PUBLISH_REASON_TRANSCODING_NO_MIX_STREAM
(13): Called updateRtmpTranscoding to update transcoding configuration in a non-transcoding streaming scenario. Please check your application logic.
RTMP_STREAM_PUBLISH_REASON_NET_DOWN
(14): Network error occurred on the broadcaster side.
RTMP_STREAM_PUBLISH_REASON_INVALID_APPID
(15): The App ID is not authorized to use the CDN live streaming feature.
RTMP_STREAM_PUBLISH_REASON_INVALID_PRIVILEGE
(16): The project is not authorized to use the streaming service.
RTMP_STREAM_UNPUBLISH_REASON_OK
(100): Streaming has stopped normally. This value is returned by the SDK after stopping media push.