Browse Source

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 years ago
parent
commit
037812a909
2 changed files with 15 additions and 15 deletions
  1. 4
    4
      JitsiConferenceEvents.js
  2. 11
    11
      modules/talkmuted/TalkMutedDetection.js

+ 4
- 4
JitsiConferenceEvents.js View File

118
  * Indicates that subject of the conference has changed.
118
  * Indicates that subject of the conference has changed.
119
  */
119
  */
120
 export const SUBJECT_CHANGED = "conference.subjectChanged";
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
  * A new media track was added to the conference. The event provides the
126
  * A new media track was added to the conference. The event provides the
123
  * following parameters to its listeners:
127
  * following parameters to its listeners:
156
  * User status changed.
160
  * User status changed.
157
  */
161
  */
158
 export const USER_STATUS_CHANGED = "conference.statusChanged";
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 View File

14
         this.eventFired = false;
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
      * Receives audio level events for all send/receive streams.
29
      * Receives audio level events for all send/receive streams.
19
      * @param ssrc the ssrc of the stream
30
      * @param ssrc the ssrc of the stream
43
         if (track.isMuted())
54
         if (track.isMuted())
44
             this.eventFired = false;
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
 }

Loading…
Cancel
Save