From 55bf5eb119616dd794976215a66ac66a048f6597 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 24 Feb 2014 19:39:25 +0100 Subject: [PATCH] bugfix for issue #41 --- libs/colibri.js | 2 +- libs/strophejingle.bundle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/colibri.js b/libs/colibri.js index cd31f94ee..159a3e7dd 100644 --- a/libs/colibri.js +++ b/libs/colibri.js @@ -925,7 +925,7 @@ ColibriFocus.prototype.hardMuteVideo = function (muted) { this.pendingop = muted ? 'mute' : 'unmute'; this.modifySources(); - this.localStream.getVideoTracks.forEach(function (track) { + this.connection.jingle.localStream.getVideoTracks().forEach(function (track) { track.enabled = !muted; }); }; diff --git a/libs/strophejingle.bundle.js b/libs/strophejingle.bundle.js index 64890d2c9..c7eec7b78 100644 --- a/libs/strophejingle.bundle.js +++ b/libs/strophejingle.bundle.js @@ -2254,7 +2254,7 @@ JingleSession.prototype.hardMuteVideo = function (muted) { this.pendingop = muted ? 'mute' : 'unmute'; this.modifySources(); - this.localStream.getVideoTracks.forEach(function (track) { + this.connection.jingle.localStream.getVideoTracks().forEach(function (track) { track.enabled = !muted; }); };