UNPKG

ngx-agora

Version:

Angular wrapper for Agora RTC client (https://www.agora.io/en/)

54 lines (53 loc) 2.44 kB
/** * Error message of the media stream relay. */ export declare enum ChannelMediaMessage { /** No error. */ 'RELAY_OK' = 0, /** An error occurs in the server response. */ 'SERVER_ERROR_RESPONSE' = 1, /** No server response. */ 'SERVER_NO_RESPONSE' = 2, /** The SDK fails to access the service, probably due to limited resources of the server. */ 'NO_RESOURCE_AVAILABLE' = 3, /** Fails to send the relay request. */ 'FAILED_JOIN_SRC' = 4, /** Fails to accept the relay request. */ 'FAILED_JOIN_DEST' = 5, /** The server fails to receive the media stream. */ 'FAILED_PACKET_RECEIVED_FROM_SRC' = 6, /** The server fails to send the media stream. */ 'FAILED_PACKET_SENT_TO_DEST' = 7, /** * The SDK disconnects from the server and fails to reconnect to the server due to a poor network connection. * In this case, the SDK resets the media stream relay state. * You can try * [startChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#startchannelmediarelay) * to restart the media stream relay. */ 'SERVER_CONNECTION_LOST' = 8, /** An internal error occurs in the server. */ 'INTERNAL_ERROR' = 9, /** The token of the source channel has expired. */ 'SRC_TOKEN_EXPIRED' = 10, /** The token of the destination channel has expired. */ 'DEST_TOKEN_EXPIRED' = 11, /** * The relay has already started. Possibly caused by calling * [startChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#startchannelmediarelay) * repeatedly, or calling * [startChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#startchannelmediarelay) * before * [stopChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#stopchannelmediarelay) * succeeds. */ 'RELAY_ALREADY_START' = 12, /** * The relay has not started. Possibly caused by calling * [updateChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#updatechannelmediarelay) * before * [startChannelMediaRelay](https://docs.agora.io/en/Video/API%20Reference/web/interfaces/agorartc.client.html#startchannelmediarelay) * succeeds. */ 'RELAY_NOT_START' = 13 }