Browse Source

audio local mute

Nikolay Suslov 4 years ago
parent
commit
ddb419b2cd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      public/vwf/view/webrtc.js

+ 4 - 1
public/vwf/view/webrtc.js

@@ -430,7 +430,10 @@ define( [ "module", "vwf/view", "vwf/utility", "vwf/utility/color"], function( m
           video.setAttribute("width", 640);
           video.setAttribute("height", 480);
 
-          if (local) video.setAttribute("muted", true);
+          if (local) {
+            video.setAttribute("muted", true);
+            video.volume = 0;
+          } 
         
         //   let audioID = '#audio-' + id;
         //   var audio = document.querySelector(audioID);