ISessionEventHandlers
@auvious/rtc / Exports / ISessionEventHandlers
Interface: ISessionEventHandlers
Handlers for a call
Table of contents
Properties
Properties
accepted
• Optional accepted: (event?: any) => void
Type declaration
▸ (event?): void
Callee has answered call
Parameters
| Name | Type |
|---|---|
event? | any |
Returns
void
connecting
• Optional connecting: (event?: any) => void
Type declaration
▸ (event?): void
Sent when rest api call successful
Parameters
| Name | Type |
|---|---|
event? | any |
Returns
void
ended
• Optional ended: (event?: any) => void
Type declaration
▸ (event?): void
Call was terminated by either end
Parameters
| Name | Type | Description |
|---|---|---|
event? | any | a reason string |
Returns
void
failed
• Optional failed: (event?: any) => void
Type declaration
▸ (event?): void
Any fatal error occurred, followed by ended event
Parameters
| Name | Type | Description |
|---|---|---|
event? | any | Error object |
Returns
void
ringing
• Optional ringing: (event?: any) => void
Type declaration
▸ (event?): void
Sent to both ends when callee has received call notification
Parameters
| Name | Type |
|---|---|
event? | any |
Returns
void
streamAdded
• Optional streamAdded: (event?: any) => void
Type declaration
▸ (event?): void
A remote stream is available, or local one immediately after call request
Parameters
| Name | Type | Description |
|---|---|---|
event? | any | IStream |
Returns
void
streamRemoved
• Optional streamRemoved: (event?: any) => void
Type declaration
▸ (event?): void
Symmetric event to streamAdded
Parameters
| Name | Type | Description |
|---|---|---|
event? | any | IStream |
Returns
void