ソースを参照

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

読み込み中…
キャンセル
保存