|
@@ -9,26 +9,6 @@
|
9
|
9
|
*/
|
10
|
10
|
export const TRACK_ADDED = Symbol('TRACK_ADDED');
|
11
|
11
|
|
12
|
|
-/**
|
13
|
|
- * The type of redux action dispatched when a local track starts being created
|
14
|
|
- * via a WebRTC {@code getUserMedia} call. The action's payload includes an
|
15
|
|
- * extra {@code gumProcess} property which is a {@code Promise} with an extra
|
16
|
|
- * {@code cancel} method which can be used to cancel the process. Canceling will
|
17
|
|
- * result in disposing any {@code JitsiLocalTrack} returned by the
|
18
|
|
- * {@code getUserMedia} callback. There will be a {@code TRACK_CREATE_CANCELED}
|
19
|
|
- * action instead of a {@code TRACK_ADDED} or {@code TRACK_CREATE_ERROR} action.
|
20
|
|
- *
|
21
|
|
- * {
|
22
|
|
- * type: TRACK_BEING_CREATED
|
23
|
|
- * track: {
|
24
|
|
- * gumProcess: Promise with a `cancel` method to cancel the process,
|
25
|
|
- * local: true,
|
26
|
|
- * mediaType: MEDIA_TYPE
|
27
|
|
- * }
|
28
|
|
- * }
|
29
|
|
- */
|
30
|
|
-export const TRACK_BEING_CREATED = Symbol('TRACK_BEING_CREATED');
|
31
|
|
-
|
32
|
12
|
/**
|
33
|
13
|
* The type of redux action dispatched when a canceled {@code getUserMedia}
|
34
|
14
|
* process completes either successfully or with an error (the error is ignored
|
|
@@ -73,3 +53,23 @@ export const TRACK_REMOVED = Symbol('TRACK_REMOVED');
|
73
|
53
|
* }
|
74
|
54
|
*/
|
75
|
55
|
export const TRACK_UPDATED = Symbol('TRACK_UPDATED');
|
|
56
|
+
|
|
57
|
+/**
|
|
58
|
+ * The type of redux action dispatched when a local track starts being created
|
|
59
|
+ * via a WebRTC {@code getUserMedia} call. The action's payload includes an
|
|
60
|
+ * extra {@code gumProcess} property which is a {@code Promise} with an extra
|
|
61
|
+ * {@code cancel} method which can be used to cancel the process. Canceling will
|
|
62
|
+ * result in disposing any {@code JitsiLocalTrack} returned by the
|
|
63
|
+ * {@code getUserMedia} callback. There will be a {@code TRACK_CREATE_CANCELED}
|
|
64
|
+ * action instead of a {@code TRACK_ADDED} or {@code TRACK_CREATE_ERROR} action.
|
|
65
|
+ *
|
|
66
|
+ * {
|
|
67
|
+ * type: TRACK_WILL_CREATE
|
|
68
|
+ * track: {
|
|
69
|
+ * gumProcess: Promise with a `cancel` method to cancel the process,
|
|
70
|
+ * local: true,
|
|
71
|
+ * mediaType: MEDIA_TYPE
|
|
72
|
+ * }
|
|
73
|
+ * }
|
|
74
|
+ */
|
|
75
|
+export const TRACK_WILL_CREATE = Symbol('TRACK_WILL_CREATE');
|