-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
JitsiTrackErrors.ts
98 lines (83 loc) · 3.39 KB
/
JitsiTrackErrors.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
/**
* The errors for the JitsiTrack objects.
*/
export enum JitsiTrackErrors {
/**
* An error which indicates that some of requested constraints in
* getUserMedia call were not satisfied.
*/
CONSTRAINT_FAILED = 'gum.constraint_failed',
/**
* A generic error which indicates an error occurred while selecting
* a DesktopCapturerSource from the electron app.
*/
ELECTRON_DESKTOP_PICKER_ERROR = 'gum.electron_desktop_picker_error',
/**
* An error which indicates a custom desktop picker could not be detected
* for the electron app.
*/
ELECTRON_DESKTOP_PICKER_NOT_FOUND = 'gum.electron_desktop_picker_not_found',
/**
* Generic getUserMedia error.
*/
GENERAL = 'gum.general',
/**
* An error which indicates that requested device was not found.
*/
NOT_FOUND = 'gum.not_found',
/**
* An error which indicates that user denied permission to share requested
* device.
*/
PERMISSION_DENIED = 'gum.permission_denied',
/**
* Generic error for screensharing failure.
*/
SCREENSHARING_GENERIC_ERROR = 'gum.screensharing_generic_error',
/**
* An error which indicates that user canceled screen sharing window
* selection dialog.
*/
SCREENSHARING_USER_CANCELED = 'gum.screensharing_user_canceled',
/**
* Indicates that the timeout passed to the obtainAudioAndVideoPermissions has expired without GUM resolving.
*/
TIMEOUT = 'gum.timeout',
/**
* An error which indicates that track has been already disposed and cannot
* be longer used.
*/
TRACK_IS_DISPOSED = 'track.track_is_disposed',
/**
* An error which indicates that track has no MediaStream associated.
*/
TRACK_NO_STREAM_FOUND = 'track.no_stream_found',
/**
* An error which indicates that requested video resolution is not supported
* by a webcam.
*/
UNSUPPORTED_RESOLUTION = 'gum.unsupported_resolution',
/**
* An error which indicates that there are too many tracks in the provided media stream
*/
TRACK_TOO_MANY_TRACKS_IN_STREAM = 'track.too_many_tracks_in_stream',
/**
* An error which indicates that no tracks were found in the media stream
*/
TRACK_NO_STREAM_TRACKS_FOUND = 'track.no_stream_tracks_found',
}
// exported for backward compatibility
export const CONSTRAINT_FAILED = JitsiTrackErrors.CONSTRAINT_FAILED;
export const ELECTRON_DESKTOP_PICKER_ERROR = JitsiTrackErrors.ELECTRON_DESKTOP_PICKER_ERROR;
export const ELECTRON_DESKTOP_PICKER_NOT_FOUND = JitsiTrackErrors.ELECTRON_DESKTOP_PICKER_NOT_FOUND;
export const GENERAL = JitsiTrackErrors.GENERAL;
export const NOT_FOUND = JitsiTrackErrors.NOT_FOUND;
export const PERMISSION_DENIED = JitsiTrackErrors.PERMISSION_DENIED;
export const SCREENSHARING_GENERIC_ERROR = JitsiTrackErrors.SCREENSHARING_GENERIC_ERROR;
export const SCREENSHARING_USER_CANCELED = JitsiTrackErrors.SCREENSHARING_USER_CANCELED;
export const TIMEOUT = JitsiTrackErrors.TIMEOUT;
export const TRACK_IS_DISPOSED = JitsiTrackErrors.TRACK_IS_DISPOSED;
export const TRACK_NO_STREAM_FOUND = JitsiTrackErrors.TRACK_NO_STREAM_FOUND;
export const UNSUPPORTED_RESOLUTION = JitsiTrackErrors.UNSUPPORTED_RESOLUTION;
export const TRACK_TOO_MANY_TRACKS_IN_STREAM = JitsiTrackErrors.TRACK_TOO_MANY_TRACKS_IN_STREAM;
export const TRACK_NO_STREAM_TRACKS_FOUND = JitsiTrackErrors.TRACK_NO_STREAM_TRACKS_FOUND;