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