Agora Java API Reference for Android
|
Public Member Functions | |
int | getValue () |
Static Public Member Functions | |
static RTMP_STREAM_PUBLISH_ERROR_TYPE | fromInt (int v) |
Error codes of the RTMP streaming.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_OK =(0) |
The RTMP or RTMPS streaming publishes successfully.
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.
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.
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.
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.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_RTMP_SERVER_ERROR =(5) |
An error occurs in the CDN server.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_TOO_OFTEN =(6) |
The RTMP or RTMPS streaming publishes too frequently.
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.
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.
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.
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.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_NOT_BROADCASTER |
Current role is not broadcaster. Check whether the role of the current channel.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_TRANSCODING_NO_MIX_STREAM |
Call updateTranscoding, but no mix stream.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_NET_DOWN =(14) |
Network error.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_ERROR_TYPE.RTMP_STREAM_PUBLISH_ERROR_INVALID_APPID =(15) |
User AppId have not authorized to push stream.
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.