forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JitsiConferenceErrors.ts
140 lines (118 loc) · 4.95 KB
/
JitsiConferenceErrors.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/**
* The errors for the conference.
*/
export enum JitsiConferenceErrors {
/**
* Indicates that client must be authenticated to create the conference.
*/
AUTHENTICATION_REQUIRED = 'conference.authenticationRequired',
/**
* Indicates that chat error occurred.
*/
CHAT_ERROR = 'conference.chatError',
/**
* Indicates that a settings error occurred.
*/
SETTINGS_ERROR = 'conference.settingsError',
/**
* Indicates that conference has been destroyed.
*/
CONFERENCE_DESTROYED = 'conference.destroyed',
/**
* Indicates that max users limit has been reached.
*/
CONFERENCE_MAX_USERS = 'conference.max_users',
/**
* Indicates that a connection error occurred when trying to join a conference.
*/
CONNECTION_ERROR = 'conference.connectionError',
/**
* Indicates that the client has been forced to restart by jicofo when the
* conference was migrated from one bridge to another.
*/
CONFERENCE_RESTARTED = 'conference.restarted',
/**
* Indicates that a connection error is due to not allowed,
* occurred when trying to join a conference.
*/
NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed',
/**
* Indicates that a connection error is due to not allowed,
* occurred when trying to join a conference, only approved members are allowed to join.
*/
MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly',
/**
* Indicates that a connection error is due to denied access to the room,
* occurred after joining a lobby room and access is denied by the room moderators.
*/
CONFERENCE_ACCESS_DENIED = 'conference.connectionError.accessDenied',
/**
* Indicates that the display name is required when joining the room.
* There are cases like lobby room where display name is required.
* @param {boolean|null} lobby whether the error is because lobby is enabled.
*/
DISPLAY_NAME_REQUIRED = 'conference.display_name_required',
/**
* Indicates that focus error happened.
*/
FOCUS_DISCONNECTED = 'conference.focusDisconnected',
/**
* Indicates that focus left the conference.
*/
FOCUS_LEFT = 'conference.focusLeft',
/**
* Indicates that graceful shutdown happened.
*/
GRACEFUL_SHUTDOWN = 'conference.gracefulShutdown',
/**
* Indicates that the media connection has failed.
*/
ICE_FAILED = 'conference.iceFailed',
/**
* Indicates that the versions of the server side components are incompatible
* with the client side.
*/
INCOMPATIBLE_SERVER_VERSIONS = 'conference.incompatible_server_versions',
/**
* Indicates that offer/answer had failed.
*/
OFFER_ANSWER_FAILED = 'conference.offerAnswerFailed',
/**
* Indicates that password cannot be set for this conference.
*/
PASSWORD_NOT_SUPPORTED = 'conference.passwordNotSupported',
/**
* Indicates that a password is required in order to join the conference.
*/
PASSWORD_REQUIRED = 'conference.passwordRequired',
/**
* Indicates that reservation system returned error.
*/
RESERVATION_ERROR = 'conference.reservationError',
/**
* Indicates that there is no available videobridge.
*/
VIDEOBRIDGE_NOT_AVAILABLE = 'conference.videobridgeNotAvailable'
}
// exported for backward compatibility
export const AUTHENTICATION_REQUIRED = JitsiConferenceErrors.AUTHENTICATION_REQUIRED;
export const CHAT_ERROR = JitsiConferenceErrors.CHAT_ERROR;
export const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
export const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
export const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
export const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
export const CONFERENCE_RESTARTED = JitsiConferenceErrors.CONFERENCE_RESTARTED;
export const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
export const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
export const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;
export const DISPLAY_NAME_REQUIRED = JitsiConferenceErrors.DISPLAY_NAME_REQUIRED;
export const FOCUS_DISCONNECTED = JitsiConferenceErrors.FOCUS_DISCONNECTED;
export const FOCUS_LEFT = JitsiConferenceErrors.FOCUS_LEFT;
export const GRACEFUL_SHUTDOWN = JitsiConferenceErrors.GRACEFUL_SHUTDOWN;
export const ICE_FAILED = JitsiConferenceErrors.ICE_FAILED;
export const INCOMPATIBLE_SERVER_VERSIONS = JitsiConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS;
export const OFFER_ANSWER_FAILED = JitsiConferenceErrors.OFFER_ANSWER_FAILED;
export const PASSWORD_NOT_SUPPORTED = JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED;
export const PASSWORD_REQUIRED = JitsiConferenceErrors.PASSWORD_REQUIRED;
export const RESERVATION_ERROR = JitsiConferenceErrors.RESERVATION_ERROR;
export const VIDEOBRIDGE_NOT_AVAILABLE = JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE;