|
@@ -1,65 +1,63 @@
|
1
|
1
|
/**
|
2
|
|
- * Enumeration with the errors for the JitsiTrack objects.
|
3
|
|
- * @type {{string: string}}
|
|
2
|
+ * The errors for the JitsiTrack objects.
|
4
|
3
|
*/
|
5
|
|
-module.exports = {
|
6
|
|
- /**
|
7
|
|
- * An error which indicates that requested video resolution is not supported
|
8
|
|
- * by a webcam.
|
9
|
|
- */
|
10
|
|
- UNSUPPORTED_RESOLUTION: "gum.unsupported_resolution",
|
11
|
|
- /**
|
12
|
|
- * An error which indicates that the jidesha extension for Firefox is
|
13
|
|
- * needed to proceed with screen sharing, and that it is not installed.
|
14
|
|
- */
|
15
|
|
- FIREFOX_EXTENSION_NEEDED: "gum.firefox_extension_needed",
|
16
|
|
- /**
|
17
|
|
- * An error which indicates that the jidesha extension for Chrome is
|
18
|
|
- * failed to install.
|
19
|
|
- */
|
20
|
|
- CHROME_EXTENSION_INSTALLATION_ERROR:
|
21
|
|
- "gum.chrome_extension_installation_error",
|
22
|
|
- /**
|
23
|
|
- * An error which indicates that user canceled screen sharing window
|
24
|
|
- * selection dialog in jidesha extension for Chrome.
|
25
|
|
- */
|
26
|
|
- CHROME_EXTENSION_USER_CANCELED:
|
27
|
|
- "gum.chrome_extension_user_canceled",
|
28
|
|
- /**
|
29
|
|
- * Generic error for jidesha extension for Chrome.
|
30
|
|
- */
|
31
|
|
- CHROME_EXTENSION_GENERIC_ERROR:
|
32
|
|
- "gum.chrome_extension_generic_error",
|
33
|
|
- /**
|
34
|
|
- * Generic getUserMedia error.
|
35
|
|
- */
|
36
|
|
- GENERAL: "gum.general",
|
37
|
|
- /**
|
38
|
|
- * An error which indicates that user denied permission to share requested
|
39
|
|
- * device.
|
40
|
|
- */
|
41
|
|
- PERMISSION_DENIED: "gum.permission_denied",
|
42
|
|
- /**
|
43
|
|
- * An error which indicates that requested device was not found.
|
44
|
|
- */
|
45
|
|
- NOT_FOUND: "gum.not_found",
|
46
|
|
- /**
|
47
|
|
- * An error which indicates that some of requested constraints in
|
48
|
|
- * getUserMedia call were not satisfied.
|
49
|
|
- */
|
50
|
|
- CONSTRAINT_FAILED: "gum.constraint_failed",
|
51
|
|
- /**
|
52
|
|
- * An error which indicates that track has been already disposed and cannot
|
53
|
|
- * be longer used.
|
54
|
|
- */
|
55
|
|
- TRACK_IS_DISPOSED: "track.track_is_disposed",
|
56
|
|
- /**
|
57
|
|
- * An error which indicates that track has no MediaStream associated.
|
58
|
|
- */
|
59
|
|
- TRACK_NO_STREAM_FOUND: "track.no_stream_found",
|
60
|
|
- /**
|
61
|
|
- * An error which indicates that track is currently in progress of muting or
|
62
|
|
- * unmuting itself.
|
63
|
|
- */
|
64
|
|
- TRACK_MUTE_UNMUTE_IN_PROGRESS: "track.mute_unmute_inprogress"
|
65
|
|
-};
|
|
4
|
+
|
|
5
|
+/**
|
|
6
|
+ * Generic error for jidesha extension for Chrome.
|
|
7
|
+ */
|
|
8
|
+export const CHROME_EXTENSION_GENERIC_ERROR
|
|
9
|
+ = "gum.chrome_extension_generic_error";
|
|
10
|
+/**
|
|
11
|
+ * An error which indicates that the jidesha extension for Chrome is
|
|
12
|
+ * failed to install.
|
|
13
|
+ */
|
|
14
|
+export const CHROME_EXTENSION_INSTALLATION_ERROR
|
|
15
|
+ = "gum.chrome_extension_installation_error";
|
|
16
|
+/**
|
|
17
|
+ * An error which indicates that user canceled screen sharing window
|
|
18
|
+ * selection dialog in jidesha extension for Chrome.
|
|
19
|
+ */
|
|
20
|
+export const CHROME_EXTENSION_USER_CANCELED
|
|
21
|
+ ="gum.chrome_extension_user_canceled";
|
|
22
|
+/**
|
|
23
|
+ * An error which indicates that some of requested constraints in
|
|
24
|
+ * getUserMedia call were not satisfied.
|
|
25
|
+ */
|
|
26
|
+export const CONSTRAINT_FAILED = "gum.constraint_failed";
|
|
27
|
+/**
|
|
28
|
+ * An error which indicates that the jidesha extension for Firefox is
|
|
29
|
+ * needed to proceed with screen sharing, and that it is not installed.
|
|
30
|
+ */
|
|
31
|
+export const FIREFOX_EXTENSION_NEEDED = "gum.firefox_extension_needed";
|
|
32
|
+/**
|
|
33
|
+ * Generic getUserMedia error.
|
|
34
|
+ */
|
|
35
|
+export const GENERAL = "gum.general";
|
|
36
|
+/**
|
|
37
|
+ * An error which indicates that requested device was not found.
|
|
38
|
+ */
|
|
39
|
+export const NOT_FOUND = "gum.not_found";
|
|
40
|
+/**
|
|
41
|
+ * An error which indicates that user denied permission to share requested
|
|
42
|
+ * device.
|
|
43
|
+ */
|
|
44
|
+export const PERMISSION_DENIED = "gum.permission_denied";
|
|
45
|
+/**
|
|
46
|
+ * An error which indicates that track has been already disposed and cannot
|
|
47
|
+ * be longer used.
|
|
48
|
+ */
|
|
49
|
+export const TRACK_IS_DISPOSED = "track.track_is_disposed";
|
|
50
|
+/**
|
|
51
|
+ * An error which indicates that track is currently in progress of muting or
|
|
52
|
+ * unmuting itself.
|
|
53
|
+ */
|
|
54
|
+export const TRACK_MUTE_UNMUTE_IN_PROGRESS = "track.mute_unmute_inprogress";
|
|
55
|
+/**
|
|
56
|
+ * An error which indicates that track has no MediaStream associated.
|
|
57
|
+ */
|
|
58
|
+export const TRACK_NO_STREAM_FOUND = "track.no_stream_found";
|
|
59
|
+/**
|
|
60
|
+ * An error which indicates that requested video resolution is not supported
|
|
61
|
+ * by a webcam.
|
|
62
|
+ */
|
|
63
|
+export const UNSUPPORTED_RESOLUTION = "gum.unsupported_resolution";
|