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.
rtmpStreamUnpublishReasonOk
100: The streaming has been stopped normally. After you stop the Media Push, the SDK returns this value.