diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.js index 0c17ca065..5a9afe34c 100644 --- a/modules/RTC/RTC.js +++ b/modules/RTC/RTC.js @@ -30,9 +30,9 @@ var RTC = { eventEmitter.removeListener(eventType, listener); }, - createLocalStream: function (stream, type, change) { + createLocalStream: function (stream, type, change, videoType) { - var localStream = new LocalStream(stream, type, eventEmitter); + var localStream = new LocalStream(stream, type, eventEmitter, videoType); //in firefox we have only one stream object if(this.localStreams.length == 0 || this.localStreams[0].getOriginalStream() != stream)