Sfoglia il codice sorgente

Fixes issue with obtaining audio/video permissions when simulcast is disabled.

j8
hristoterezov 10 anni fa
parent
commit
efc161dacd
3 ha cambiato i file con 14 aggiunte e 4 eliminazioni
  1. 12
    1
      libs/modules/RTC.bundle.js
  2. 1
    2
      libs/modules/statistics.bundle.js
  3. 1
    1
      modules/RTC/RTCUtils.js

+ 12
- 1
libs/modules/RTC.bundle.js Vedi File

@@ -321,6 +321,17 @@ module.exports = LocalStream;
321 321
  * @constructor
322 322
  */
323 323
 function MediaStream(data, sid, ssrc, eventEmmiter, browser) {
324
+
325
+    // XXX(gp) to minimize headaches in the future, we should build our
326
+    // abstractions around tracks and not streams. ORTC is track based API.
327
+    // Mozilla expects m-lines to represent media tracks.
328
+    //
329
+    // Practically, what I'm saying is that we should have a MediaTrack class
330
+    // and not a MediaStream class.
331
+    //
332
+    // Also, we should be able to associate multiple SSRCs with a MediaTrack as
333
+    // a track might have an associated RTX and FEC sources.
334
+
324 335
     this.sid = sid;
325 336
     this.stream = data.stream;
326 337
     this.peerjid = data.peerjid;
@@ -727,7 +738,7 @@ RTCUtils.prototype.getUserMediaWithConstraints = function(
727 738
                 });
728 739
         } else {
729 740
 
730
-            RTCUtils.getUserMedia(constraints,
741
+            this.getUserMedia(constraints,
731 742
                 function (stream) {
732 743
                     console.log('onUserMediaSuccess');
733 744
                     success_callback(stream);

+ 1
- 2
libs/modules/statistics.bundle.js
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
modules/RTC/RTCUtils.js Vedi File

@@ -245,7 +245,7 @@ RTCUtils.prototype.getUserMediaWithConstraints = function(
245 245
                 });
246 246
         } else {
247 247
 
248
-            RTCUtils.getUserMedia(constraints,
248
+            this.getUserMedia(constraints,
249 249
                 function (stream) {
250 250
                     console.log('onUserMediaSuccess');
251 251
                     success_callback(stream);

Loading…
Annulla
Salva