소스 검색

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 년 전
부모
커밋
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) {

Loading…
취소
저장