Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ChannelMediaRelayError

The error code.

  • 0: The state is normal.
  • 1: An error occurs in the server response.
  • 2: No server response. You can call the leaveChannel method to leave the channel.
  • 3: The SDK fails to access the service, probably due to limited resources of the server.
  • 4: Fails to send the relay request.
  • 5: Fails to accept the relay request.
  • 6: The server fails to receive the media stream.
  • 7: The server fails to send the media stream.
  • 8: The SDK disconnects from the server due to poor network connections. You can call the leaveChannel method to leave the channel.
  • 9: An internal error occurs in the server.
  • 10: The token of the source channel has expired.
  • 11: The token of the destination channel has expired.

Index

Enumeration members

RELAY_ERROR_DEST_TOKEN_EXPIRED

RELAY_ERROR_DEST_TOKEN_EXPIRED: = 11

11: The token of the destination channel has expired.

RELAY_ERROR_FAILED_JOIN_DEST

RELAY_ERROR_FAILED_JOIN_DEST: = 5

5: Fails to accept the relay request.

RELAY_ERROR_FAILED_JOIN_SRC

RELAY_ERROR_FAILED_JOIN_SRC: = 4

4: Fails to send the relay request.

RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC

RELAY_ERROR_FAILED_PACKET_RECEIVED_FROM_SRC: = 6

6: The server fails to receive the media stream.

RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST

RELAY_ERROR_FAILED_PACKET_SENT_TO_DEST: = 7

7: The server fails to send the media stream.

RELAY_ERROR_INTERNAL_ERROR

RELAY_ERROR_INTERNAL_ERROR: = 9

9: An internal error occurs in the server.

RELAY_ERROR_NO_RESOURCE_AVAILABLE

RELAY_ERROR_NO_RESOURCE_AVAILABLE: = 3

3: The SDK fails to access the service, probably due to limited resources of the server.

RELAY_ERROR_SERVER_CONNECTION_LOST

RELAY_ERROR_SERVER_CONNECTION_LOST: = 8

8: The SDK disconnects from the server due to poor network connections. You can call the \ref agora::rtc::IRtcEngine::leaveChannel "leaveChannel" method to leave the channel.

RELAY_ERROR_SERVER_ERROR_RESPONSE

RELAY_ERROR_SERVER_ERROR_RESPONSE: = 1

1: An error occurs in the server response.

RELAY_ERROR_SERVER_NO_RESPONSE

RELAY_ERROR_SERVER_NO_RESPONSE: = 2

2: No server response.

You can call the \ref agora::rtc::IRtcEngine::leaveChannel "leaveChannel" method to leave the channel.

This error can also occur if your project has not enabled co-host token authentication. Contact support@agora.io to enable the co-host token authentication service before starting a channel media relay.

RELAY_ERROR_SRC_TOKEN_EXPIRED

RELAY_ERROR_SRC_TOKEN_EXPIRED: = 10

10: The token of the source channel has expired.

RELAY_OK

RELAY_OK: = 0

0: The state is normal.