Skip to content

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

Updates app.bundle.js.

George Politisb690f5d4a187
diff --git a/index.html b/index.html
index 81a75344af..4a14a13bc2 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
- <script src="libs/app.bundle.js?v=28"></script>
+ <script src="libs/app.bundle.js?v=29"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=6"/>
<link rel="stylesheet" href="css/toastr.css?v=1">
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 309055e0fd..4234c99f07 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -1007,8 +1007,14 @@ function RTCUtils(RTCService)
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
this.pc_constraints = {};
this.attachMediaStream = function (element, stream) {
- console.log('Attaching', stream, ' to ', element);
- element[0].src = URL.createObjectURL(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();
};
this.getStreamID = function (stream) {
@@ -1020,10 +1026,10 @@ function RTCUtils(RTCService)
return tracks[0].id.replace(/[\{,\}]/g,"");
};
this.getVideoSrc = function (element) {
- return element.src;
+ return element.mozSrcObject;
};
this.setVideoSrc = function (element, src) {
- element.src = src;
+ element.mozSrcObject = src;
};
RTCSessionDescription = mozRTCSessionDescription;
RTCIceCandidate = mozRTCIceCandidate;