Skip to content

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

Adds a comment about how FF handles the video.src attribute.

George Politisd9f7b8b6cc57
diff --git a/modules/RTC/RTCUtils.js b/modules/RTC/RTCUtils.js
index 883ec5653f..f7e77b8551 100644
--- a/modules/RTC/RTCUtils.js
+++ b/modules/RTC/RTCUtils.js
@@ -136,6 +136,13 @@ function RTCUtils(RTCService)
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
this.pc_constraints = {};
this.attachMediaStream = function (element, stream) {
+ // srcObject is being standardized and FF will eventually
+ // support that unprefixed. FF also supports the
+ // "element.src = URL.createObjectURL(...)" combo, but that
+ // will be deprecated in favour of srcObject.
+ //
+ // https://groups.google.com/forum/#!topic/mozilla.dev.media/pKOiioXonJg
+ // https://github.com/webrtc/samples/issues/302
element[0].mozSrcObject = stream;
element[0].play();
};
@@ -355,4 +362,4 @@ RTCUtils.prototype.handleLocalStream = function(stream)
-module.exports = RTCUtils;
\ No newline at end of file
+module.exports = RTCUtils;