Selaa lähdekoodia

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 10 vuotta sitten
vanhempi
commit
ae96b9f365
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10
    0
      modules/UI/videolayout/VideoLayout.js

+ 10
- 0
modules/UI/videolayout/VideoLayout.js Näytä tiedosto

@@ -68,6 +68,16 @@ var VideoLayout = (function (my) {
68 68
             localAudio.autoplay = true;
69 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 83
     my.changeLocalVideo = function(stream, isMuted) {

Loading…
Peruuta
Tallenna