|
@@ -136,6 +136,13 @@ function RTCUtils(RTCService)
|
136
|
136
|
this.getUserMedia = navigator.mozGetUserMedia.bind(navigator);
|
137
|
137
|
this.pc_constraints = {};
|
138
|
138
|
this.attachMediaStream = function (element, stream) {
|
|
139
|
+ // srcObject is being standardized and FF will eventually
|
|
140
|
+ // support that unprefixed. FF also supports the
|
|
141
|
+ // "element.src = URL.createObjectURL(...)" combo, but that
|
|
142
|
+ // will be deprecated in favour of srcObject.
|
|
143
|
+ //
|
|
144
|
+ // https://groups.google.com/forum/#!topic/mozilla.dev.media/pKOiioXonJg
|
|
145
|
+ // https://github.com/webrtc/samples/issues/302
|
139
|
146
|
element[0].mozSrcObject = stream;
|
140
|
147
|
element[0].play();
|
141
|
148
|
};
|
|
@@ -355,4 +362,4 @@ RTCUtils.prototype.handleLocalStream = function(stream)
|
355
|
362
|
|
356
|
363
|
|
357
|
364
|
|
358
|
|
-module.exports = RTCUtils;
|
|
365
|
+module.exports = RTCUtils;
|