Explorar el Código

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

master
hristoterezov hace 11 años
padre
commit
f6a846eecc
Se han modificado 1 ficheros con 2 adiciones y 11 borrados
  1. 2
    11
      app.js

+ 2
- 11
app.js Ver fichero

@@ -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…
Cancelar
Guardar