RtmpStreamPublishReason

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

Enumerator

RtmpStreamPublishReasonOk
0: The RTMP or RTMPS streaming has not started or has ended.
RtmpStreamPublishReasonInvalidArgument
1: Invalid argument used. Check the parameter setting.
RtmpStreamPublishReasonEncryptedStreamNotAllowed
2: The RTMP or RTMPS streaming is encrypted and cannot be published.
RtmpStreamPublishReasonConnectionTimeout
3: Timeout for the RTMP or RTMPS streaming.
RtmpStreamPublishReasonInternalServerError
4: An error occurs in Agora's streaming server.
RtmpStreamPublishReasonRtmpServerError
5: An error occurs in the CDN server.
RtmpStreamPublishReasonTooOften
6: The RTMP or RTMPS streaming publishes too frequently.
RtmpStreamPublishReasonReachLimit
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
RtmpStreamPublishReasonNotAuthorized
8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
RtmpStreamPublishReasonStreamNotFound
9: Agora's server fails to find the RTMP or RTMPS streaming.
RtmpStreamPublishReasonFormatNotSupported
10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
RtmpStreamPublishReasonNotBroadcaster
11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
RtmpStreamPublishReasonTranscodingNoMixStream
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.
RtmpStreamPublishReasonNetDown
14: Errors occurred in the host's network.
RtmpStreamPublishReasonInvalidPrivilege
16: Your project does not have permission to use streaming services.
RtmpStreamUnpublishErrorOk
100: The streaming has been stopped normally. After you stop the Media Push, the SDK returns this value.