Bläddra i källkod

Fixes issue in IE where click events on local video thumbnail are captured by local audio object created by Temasys plugin on stream attach.

master
paweldomas 9 år sedan
förälder
incheckning
ae96b9f365
1 ändrade filer med 10 tillägg och 0 borttagningar
  1. 10
    0
      modules/UI/videolayout/VideoLayout.js

+ 10
- 0
modules/UI/videolayout/VideoLayout.js Visa fil

68
             localAudio.autoplay = true;
68
             localAudio.autoplay = true;
69
             localAudio.volume = 0;
69
             localAudio.volume = 0;
70
         }
70
         }
71
+        // Now when Temasys plugin is converting also <audio> elements to
72
+        // plugin's <object>s, in current layout it will capture click events
73
+        // before it reaches the local video object. We hide it here in order
74
+        // to prevent that.
75
+        if (RTCBrowserType.isIExplorer()) {
76
+            // The issue is not present on Safari. Also if we hide it in Safari
77
+            // then the local audio track will have 'enabled' flag set to false
78
+            // which will result in audio mute issues
79
+            $('#localAudio').hide();
80
+        }
71
     };
81
     };
72
 
82
 
73
     my.changeLocalVideo = function(stream, isMuted) {
83
     my.changeLocalVideo = function(stream, isMuted) {

Laddar…
Avbryt
Spara