diff --git a/modules/xmpp/JingleSession.js b/modules/xmpp/JingleSession.js index db1724470..6dc489e49 100644 --- a/modules/xmpp/JingleSession.js +++ b/modules/xmpp/JingleSession.js @@ -974,7 +974,7 @@ JingleSession.prototype.switchStreams = function (new_stream, oldStream, success self.peerconnection.addStream(new_stream); } - RTC.switchVideoStreams(new_stream, oldStream); + APP.RTC.switchVideoStreams(new_stream, oldStream); // Conference is not active if(!oldSdp || !self.peerconnection) { @@ -1391,4 +1391,4 @@ JingleSession.prototype.remoteStreamAdded = function (data) { } } -module.exports = JingleSession; \ No newline at end of file +module.exports = JingleSession;