Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds comment to modules/RTC/MediaStream.js

George Politis2ee5a92ef02c
diff --git a/modules/RTC/MediaStream.js b/modules/RTC/MediaStream.js
index a981eaed39..cf1755d36e 100644
--- a/modules/RTC/MediaStream.js
+++ b/modules/RTC/MediaStream.js
@@ -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;