浏览代码

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 年前
父节点
当前提交
ae96b9f365
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      modules/UI/videolayout/VideoLayout.js

+ 10
- 0
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -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) {

正在加载...
取消
保存