Agora Java API Reference for Android
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE Enum Reference

Public Member Functions

int getValue ()
 

Static Public Member Functions

static RTMP_STREAM_PUBLISH_ERROR_TYPE fromInt (int v)
 

Public Attributes

 RTMP_STREAM_PUBLISH_ERROR_OK =(0)
 
 RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT =(1)
 
 RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED =(2)
 
 RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT =(3)
 
 RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR =(4)
 
 RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR =(5)
 
 RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN =(6)
 
 RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT =(7)
 
 RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED =(8)
 
 RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND =(9)
 
 RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED =(10)
 
 RTMP_STREAM_PUBLISH_ERROR_NOT_BROADCASTER
 
 RTMP_STREAM_PUBLISH_ERROR_TRANSCODING_NO_MIX_STREAM
 
 RTMP_STREAM_PUBLISH_ERROR_NET_DOWN =(14)
 
 RTMP_STREAM_PUBLISH_ERROR_INVALID_APPID =(15)
 
 RTMP_STREAM_UNPUBLISH_ERROR_OK =(100)
 

Detailed Description

Error codes of the RTMP streaming.

Member Data Documentation

◆ RTMP_STREAM_PUBLISH_ERROR_OK

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_OK =(0)

The RTMP or RTMPS streaming publishes successfully.

◆ RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_INVALID_ARGUMENT =(1)

Invalid argument used. If, for example, you do not call the setLiveTranscoding method to configure the LiveTranscoding parameters before calling the addPublishStreamUrl method, the SDK returns this error. Check whether you set the parameters in the setLiveTranscoding method properly.

◆ RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_ENCRYPTED_STREAM_NOT_ALLOWED =(2)

The RTMP or RTMPS streaming is encrypted and cannot be published.

◆ RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_CONNECTION_TIMEOUT =(3)

Timeout for the RTMP or RTMPS streaming. Call the addPublishStreamUrl method to publish the streaming again.

◆ RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_INTERNAL_SERVER_ERROR =(4)

An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.

◆ RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR =(5)

An error occurs in the CDN server.

◆ RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN =(6)

The RTMP or RTMPS streaming publishes too frequently.

◆ RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_REACH_LIMIT =(7)

The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.

◆ RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_NOT_AUTHORIZED =(8)

The host manipulates other hosts' URLs. Check your app logic.

◆ RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_STREAM_NOT_FOUND =(9)

Agora's server fails to find the RTMP or RTMPS streaming.

◆ RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_FORMAT_NOT_SUPPORTED =(10)

The format of the RTMP or RTMPS streaming URL is not supported. Check whether the URL format is correct.

◆ RTMP_STREAM_PUBLISH_ERROR_NOT_BROADCASTER

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_NOT_BROADCASTER
Initial value:
=(
11)

Current role is not broadcaster. Check whether the role of the current channel.

◆ RTMP_STREAM_PUBLISH_ERROR_TRANSCODING_NO_MIX_STREAM

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_TRANSCODING_NO_MIX_STREAM
Initial value:
=(
13)

Call updateTranscoding, but no mix stream.

◆ RTMP_STREAM_PUBLISH_ERROR_NET_DOWN

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_NET_DOWN =(14)

Network error.

◆ RTMP_STREAM_PUBLISH_ERROR_INVALID_APPID

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_INVALID_APPID =(15)

User AppId have not authorized to push stream.

◆ RTMP_STREAM_UNPUBLISH_ERROR_OK

io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_UNPUBLISH_ERROR_OK =(100)

100: The streaming has been stopped normally. After you call removePublishStreamUrl to stop streaming, the SDK returns this value.

Since
v3.4.5