Bläddra i källkod

Sort in alphabetical order

As I see no hidden meaning in the current non-preservation of
alphabetical order, I prefer to facilitate scanning (in the fashion of
searching in a dictionary).
dev1
Lyubomir Marinov 9 år sedan
förälder
incheckning
037812a909
2 ändrade filer med 15 tillägg och 15 borttagningar
  1. 4
    4
      JitsiConferenceEvents.js
  2. 11
    11
      modules/talkmuted/TalkMutedDetection.js

+ 4
- 4
JitsiConferenceEvents.js Visa fil

@@ -118,6 +118,10 @@ export const STARTED_MUTED = "conference.started_muted";
118 118
  * Indicates that subject of the conference has changed.
119 119
  */
120 120
 export const SUBJECT_CHANGED = "conference.subjectChanged";
121
+/**
122
+ * Event indicates that local user is talking while he muted himself
123
+ */
124
+export const TALK_WHILE_MUTED = "conference.talk_while_muted";
121 125
 /**
122 126
  * A new media track was added to the conference. The event provides the
123 127
  * following parameters to its listeners:
@@ -156,7 +160,3 @@ export const USER_ROLE_CHANGED = "conference.roleChanged";
156 160
  * User status changed.
157 161
  */
158 162
 export const USER_STATUS_CHANGED = "conference.statusChanged";
159
-/**
160
- * Event indicates that local user is talking while he muted himself
161
- */
162
-export const TALK_WHILE_MUTED = "conference.talk_while_muted";

+ 11
- 11
modules/talkmuted/TalkMutedDetection.js Visa fil

@@ -14,6 +14,17 @@ export default class TalkMutedDetection {
14 14
         this.eventFired = false;
15 15
     }
16 16
 
17
+    /**
18
+     * Adds local tracks. We are interested only in the audio one.
19
+     * @param track
20
+     */
21
+    addTrack(track) {
22
+        if (!track.isAudioTrack())
23
+            return;
24
+
25
+        this.audioTrack = track;
26
+    }
27
+
17 28
     /**
18 29
      * Receives audio level events for all send/receive streams.
19 30
      * @param ssrc the ssrc of the stream
@@ -43,15 +54,4 @@ export default class TalkMutedDetection {
43 54
         if (track.isMuted())
44 55
             this.eventFired = false;
45 56
     }
46
-
47
-    /**
48
-     * Adds local tracks. We are interested only in the audio one.
49
-     * @param track
50
-     */
51
-    addTrack(track) {
52
-        if (!track.isAudioTrack())
53
-            return;
54
-
55
-        this.audioTrack = track;
56
-    }
57 57
 }

Laddar…
Avbryt
Spara