Enumeration ChannelMediaRelayState

The state code of the media stream relay. You can get the code through AgoraRTCClient.on("channel-media-relay-state").

Index

Enumeration members

RELAY_STATE_CONNECTING

RELAY_STATE_CONNECTING: = "RELAY_STATE_CONNECTING"

The SDK is connecting to the media stream relay service.

RELAY_STATE_FAILURE

RELAY_STATE_FAILURE: = "RELAY_STATE_FAILURE"

An error occurs in the media stream relay. See ChannelMediaRelayError for the error code.

RELAY_STATE_IDLE

RELAY_STATE_IDLE: = "RELAY_STATE_IDLE"

The SDK reports an idle relay state. In Web SDK 4.24.10 this can describe an initialized relay that has not started, or a relay recovering from a temporary signaling disconnection. Do not restart with IAgoraRTCClient.startChannelMediaRelay based solely on this state.

RELAY_STATE_RUNNING

RELAY_STATE_RUNNING: = "RELAY_STATE_RUNNING"

The SDK reports a running relay state. This does not confirm that the latest destination update succeeded. Use the Promise returned by IAgoraRTCClient.updateChannelMediaRelay for that operation result.