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

This commit is contained in:
paweldomas 2015-08-19 16:36:21 +02:00
parent 922d0bd512
commit ae96b9f365
1 changed files with 10 additions and 0 deletions

View File

@ -68,6 +68,16 @@ var VideoLayout = (function (my) {
localAudio.autoplay = true;
localAudio.volume = 0;
}
// Now when Temasys plugin is converting also <audio> elements to
// plugin's <object>s, in current layout it will capture click events
// before it reaches the local video object. We hide it here in order
// to prevent that.
if (RTCBrowserType.isIExplorer()) {
// The issue is not present on Safari. Also if we hide it in Safari
// then the local audio track will have 'enabled' flag set to false
// which will result in audio mute issues
$('#localAudio').hide();
}
};
my.changeLocalVideo = function(stream, isMuted) {