RTMP_STREAM_PUBLISH_REASON

Reason for stream state change.

Enumerations

RTMP_STREAM_PUBLISH_REASON_OK
0: Stream published successfully.
RTMP_STREAM_PUBLISH_REASON_INVALID_ARGUMENT
1: Invalid parameters. Please check whether the input parameters are correct.
RTMP_STREAM_PUBLISH_REASON_ENCRYPTED_STREAM_NOT_ALLOWED
2: The stream is encrypted and cannot be published.
RTMP_STREAM_PUBLISH_REASON_CONNECTION_TIMEOUT
3: Stream publishing timed out and failed.
RTMP_STREAM_PUBLISH_REASON_INTERNAL_SERVER_ERROR
4: An error occurred on the streaming server.
RTMP_STREAM_PUBLISH_REASON_RTMP_SERVER_ERROR
5: An error occurred on the CDN server.
RTMP_STREAM_PUBLISH_REASON_TOO_OFTEN
6: Streaming requests are too frequent.
RTMP_STREAM_PUBLISH_REASON_REACH_LIMIT
7: The number of stream URLs for a single host has reached the limit of 10. Please delete some unused stream URLs before adding new ones.
RTMP_STREAM_PUBLISH_REASON_NOT_AUTHORIZED
8: The host is operating on a stream that does not belong to them. For example, updating another host's stream parameters or stopping another host's stream. Please check your app logic.
RTMP_STREAM_PUBLISH_REASON_STREAM_NOT_FOUND
9: The server could not find the stream.
RTMP_STREAM_PUBLISH_REASON_FORMAT_NOT_SUPPORTED
10: The stream URL format is incorrect. Please check whether the stream URL format is correct.
RTMP_STREAM_PUBLISH_REASON_NOT_BROADCASTER
11: The user role is not a broadcaster and cannot use the streaming function. Please check your application code logic.
RTMP_STREAM_PUBLISH_REASON_TRANSCODING_NO_MIX_STREAM
13: Called the UpdateRtmpTranscoding method to update transcoding properties in a non-transcoding stream scenario. Please check your application code logic.
RTMP_STREAM_PUBLISH_REASON_NET_DOWN
14: The host's network encountered an error.
RTMP_STREAM_PUBLISH_REASON_INVALID_PRIVILEGE
16: Your project does not have permission to use the streaming service.
RTMP_STREAM_UNPUBLISH_REASON_OK
100: Streaming ended normally. After you stop streaming, the SDK returns this value.