Browse Source

Recognizes focus user. Adds missing semicolons.

j8
paweldomas 11 years ago
parent
commit
1729f7e17e
2 changed files with 6 additions and 5 deletions
  1. 5
    4
      app.js
  2. 1
    1
      videolayout.js

+ 5
- 4
app.js View File

765
 
765
 
766
 $(document).bind('entered.muc', function (event, jid, info, pres) {
766
 $(document).bind('entered.muc', function (event, jid, info, pres) {
767
     console.log('entered', jid, info);
767
     console.log('entered', jid, info);
768
-    messageHandler.notify(info.displayName || 'Somebody',
769
-        'connected',
770
-        'connected');
771
-
772
     if (info.isFocus)
768
     if (info.isFocus)
773
     {
769
     {
774
         focusJid = jid;
770
         focusJid = jid;
775
         console.info("Ignore focus: " + jid +", real JID: " + info.jid);
771
         console.info("Ignore focus: " + jid +", real JID: " + info.jid);
772
+        messageHandler.notify('Focus', 'connected', 'connected');
776
         return;
773
         return;
777
     }
774
     }
778
 
775
 
776
+    messageHandler.notify(info.displayName || 'Somebody',
777
+        'connected',
778
+        'connected');
779
+
779
     // Add Peer's container
780
     // Add Peer's container
780
     var id = $(pres).find('>userID').text();
781
     var id = $(pres).find('>userID').text();
781
     var email = $(pres).find('>email');
782
     var email = $(pres).find('>email');

+ 1
- 1
videolayout.js View File

23
     my.changeLocalStream = function (stream) {
23
     my.changeLocalStream = function (stream) {
24
         connection.jingle.localAudio = stream;
24
         connection.jingle.localAudio = stream;
25
         VideoLayout.changeLocalVideo(stream, true);
25
         VideoLayout.changeLocalVideo(stream, true);
26
-    }
26
+    };
27
 
27
 
28
     my.changeLocalAudio = function(stream) {
28
     my.changeLocalAudio = function(stream) {
29
         connection.jingle.localAudio = stream;
29
         connection.jingle.localAudio = stream;

Loading…
Cancel
Save