Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ChannelMediaRelayState

The state code.

  • 0: The SDK is initializing.
  • 1: The SDK tries to relay the media stream to the destination channel.
  • 2: The SDK successfully relays the media stream to the destination channel.
  • 3: A failure occurs. See the error code in ChannelMediaRelayError.

Index

Enumeration members

RELAY_STATE_CONNECTING

RELAY_STATE_CONNECTING: = 1

1: The SDK tries to relay the media stream to the destination channel.

RELAY_STATE_FAILURE

RELAY_STATE_FAILURE: = 3

3: A failure occurs. See the details in code.

RELAY_STATE_IDLE

RELAY_STATE_IDLE: = 0

0: The initial state. After you successfully stop the channel media relay by calling \ref IRtcEngine::stopChannelMediaRelay "stopChannelMediaRelay", the \ref IRtcEngineEventHandler::onChannelMediaRelayStateChanged "onChannelMediaRelayStateChanged" callback returns this state.

RELAY_STATE_RUNNING

RELAY_STATE_RUNNING: = 2

2: The SDK successfully relays the media stream to the destination channel.