Adds comment to modules/RTC/MediaStream.js

This commit is contained in:
George Politis 2014-12-22 15:08:49 +01:00
parent 4a991f7187
commit 2ee5a92ef0
1 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,17 @@
* @constructor
*/
function MediaStream(data, sid, ssrc, eventEmmiter, browser) {
// XXX(gp) to minimize headaches in the future, we should build our
// abstractions around tracks and not streams. ORTC is track based API.
// Mozilla expects m-lines to represent media tracks.
//
// Practically, what I'm saying is that we should have a MediaTrack class
// and not a MediaStream class.
//
// Also, we should be able to associate multiple SSRCs with a MediaTrack as
// a track might have an associated RTX and FEC sources.
this.sid = sid;
this.stream = data.stream;
this.peerjid = data.peerjid;