Explorar el Código

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

j8
George Politis hace 10 años
padre
commit
d9f7b8b6cc
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      modules/RTC/RTCUtils.js

+ 8
- 1
modules/RTC/RTCUtils.js Ver fichero

@@ -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;

Loading…
Cancelar
Guardar