Browse Source

Added comment to clarify why a null stream is injected.

pull/206/head
Simon Eisenmann 10 years ago committed by Simon Eisenmann
parent
commit
647618fb74
  1. 1
      static/js/mediastream/peercall.js

1
static/js/mediastream/peercall.js

@ -152,6 +152,7 @@ define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection @@ -152,6 +152,7 @@ define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection
}
}, this));
if (streams === 0 && this.sdpConstraints.mandatory && (this.sdpConstraints.mandatory.OfferToReceiveAudio || this.sdpConstraints.mandatory.OfferToReceiveVideo)) {
// We assume that we will eventually receive a stream, so we trigger the event to let the UI prepare for it.
this.e.triggerHandler("remoteStreamAdded", [null, this]);
}
}, this));

Loading…
Cancel
Save