RtmpStreamingErrorCode enum
Error codes of the RTMP or RTMPS streaming.
Constructors
- RtmpStreamingErrorCode()
-
const
Values
- OK → const RtmpStreamingErrorCode
-
0: The RTMP or RTMPS streaming publishes successfully.
- InvalidParameters → const RtmpStreamingErrorCode
-
1: Invalid argument used. Please check the parameter setting. For example, if you do not call setLiveTranscoding to set the transcoding parameters before calling addPublishStreamUrl , the SDK returns this error.
- EncryptedStreamNotAllowed → const RtmpStreamingErrorCode
-
2: The RTMP or RTMPS streaming is encrypted and cannot be published.
- ConnectionTimeout → const RtmpStreamingErrorCode
-
3: Timeout for the RTMP or RTMPS streaming. Call the addPublishStreamUrl method to publish the streaming again.
- InternalServerError → const RtmpStreamingErrorCode
-
4: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.
- RtmpServerError → const RtmpStreamingErrorCode
-
5: An error occurs in the CDN server.
- TooOften → const RtmpStreamingErrorCode
-
6: The RTMP or RTMPS streaming publishes too frequently.
- ReachLimit → const RtmpStreamingErrorCode
-
7: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
- NotAuthorized → const RtmpStreamingErrorCode
-
8: The host manipulates other hosts' URLs. For example, the host updates or stops other hosts' streams. Check your app logic.
- StreamNotFound → const RtmpStreamingErrorCode
-
9: Agora's server fails to find the RTMP or RTMPS streaming.
- FormatNotSupported → const RtmpStreamingErrorCode
-
10: The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.
- NotBroadcaster → const RtmpStreamingErrorCode
-
11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic.
- TranscodingNoMixStream → const RtmpStreamingErrorCode
-
The updateRtmpTranscoding or setLiveTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic.
- NetDown → const RtmpStreamingErrorCode
-
14: Errors occurred in the host's network.
- InvalidAppid → const RtmpStreamingErrorCode
-
15: Your App ID does not have permission to use the CDN live streaming function. Refer to Prerequisites to enable the CDN live streaming permission.
- UnPublishOK → const RtmpStreamingErrorCode
-
100: The streaming has been stopped normally. After you call removePublishStreamUrl to stop streaming, the SDK returns this value.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
RtmpStreamingErrorCode> - A constant List of the values in this enum, in order of their declaration.