Browse Source

Fixes JS error when enable / disable video. Changes the enable / disable video function to send presence with videomuted element.

master
hristoterezov 11 years ago
parent
commit
f6a846eecc
1 changed files with 2 additions and 11 deletions
  1. 2
    11
      app.js

+ 2
- 11
app.js View File

@@ -950,20 +950,11 @@ function toggleVideo() {
950 950
                     $('#video').removeClass("icon-camera icon-camera-disabled");
951 951
                     $('#video').addClass("icon-camera");
952 952
                 }
953
+                connection.emuc.addVideoInfoToPresence(isMuted);
954
+                connection.emuc.sendPresence();
953 955
             }
954 956
         );
955 957
     }
956
-
957
-    sess = focus || activecall;
958
-    if (!sess) {
959
-        return;
960
-    }
961
-
962
-    sess.pendingop = ismuted ? 'unmute' : 'mute';
963
-//    connection.emuc.addVideoInfoToPresence(!ismuted);
964
-//    connection.emuc.sendPresence();
965
-
966
-    sess.modifySources();
967 958
 }
968 959
 
969 960
 /**

Loading…
Cancel
Save