Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes issue with audio being muted for the participant who shares his screen(detected on Chrome 40 and probably above).

paweldomas5433f80148b6
diff --git a/index.html b/index.html
index 326a3b92f6..f12e30ad21 100644
--- a/index.html
+++ b/index.html
@@ -47,7 +47,7 @@
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<script src="rtp_sts.js?v=1"></script><!-- RTP stats processing -->
<script src="local_sts.js?v=1"></script><!-- Local stats processing -->
- <script src="videolayout.js?v=12"></script><!-- video ui -->
+ <script src="videolayout.js?v=13"></script><!-- video ui -->
<script src="toolbar.js?v=6"></script><!-- toolbar ui -->
<script src="toolbar_toggler.js?v=2"></script>
<script src="canvas_util.js?v=1"></script><!-- canvas drawing utils -->
diff --git a/videolayout.js b/videolayout.js
index 42da80c7bf..06e866d959 100644
--- a/videolayout.js
+++ b/videolayout.js
@@ -431,7 +431,8 @@ var VideoLayout = (function (my) {
stream.onended = function () {
console.log('stream ended', this);
- VideoLayout.removeRemoteStreamElement(stream, container);
+ VideoLayout.removeRemoteStreamElement(
+ stream, isVideo, container);
if (peerJid)
ContactList.removeContact(peerJid);
@@ -481,15 +482,16 @@ var VideoLayout = (function (my) {
* parent container.
*
* @param stream the stream
+ * @param isVideo <tt>true</tt> if given <tt>stream</tt> is a video one.
* @param container
*/
- my.removeRemoteStreamElement = function (stream, container) {
+ my.removeRemoteStreamElement = function (stream, isVideo, container) {
if (!container)
return;
var select = null;
var removedVideoSrc = null;
- if (stream.getVideoTracks().length > 0) {
+ if (isVideo) {
select = $('#' + container.id + '>video');
removedVideoSrc = select.get(0).src;
}