Agora Java API Reference for Android
|
Public Member Functions | |
int | getValue () |
Static Public Member Functions | |
static RTMP_STREAM_PUBLISH_STATE | fromInt (int v) |
Public Attributes | |
RTMP_STREAM_PUBLISH_STATE_IDLE =(0) | |
RTMP_STREAM_PUBLISH_STATE_CONNECTING =(1) | |
RTMP_STREAM_PUBLISH_STATE_RUNNING =(2) | |
RTMP_STREAM_PUBLISH_STATE_RECOVERING =(3) | |
RTMP_STREAM_PUBLISH_STATE_FAILURE =(4) | |
States of the RTMP streaming.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_STATE.RTMP_STREAM_PUBLISH_STATE_IDLE =(0) |
0: The RTMP streaming has not started or has ended.
This state is also reported after you remove an RTMP address from the CDN by calling removePublishStreamUrl
.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_STATE.RTMP_STREAM_PUBLISH_STATE_CONNECTING =(1) |
1: The SDK is connecting to the streaming server and the RTMP server.
This state is reported after you call addPublishStreamUrl
.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_STATE.RTMP_STREAM_PUBLISH_STATE_RUNNING =(2) |
2: The RTMP streaming publishes. The SDK successfully publishes the RTMP streaming and returns this state.
io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_STATE.RTMP_STREAM_PUBLISH_STATE_RECOVERING =(3) |
3: The RTMP streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP streaming and reports this state.
RTMP_STREAM_PUBLISH_STATE_RUNNING(2)
is reported.RTMP_STREAM_PUBLISH_STATE_FAILURE(4)
is reported. You can also reconnect to the server by calling removePublishStreamUrl
and addPublishStreamUrl
. io.agora.rtc2.IRtcEngineEventHandler.RTMP_STREAM_PUBLISH_STATE.RTMP_STREAM_PUBLISH_STATE_FAILURE =(4) |
4: The RTMP streaming fails. See the errCode
parameter for the detailed error information. You can also call addPublishStreamUrl
to publish the RTMP streaming again.