From 647618fb74ddf1b822b6866668e7ba82e9404326 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Sun, 26 Apr 2015 16:27:03 +0200 Subject: [PATCH] Added comment to clarify why a null stream is injected. --- static/js/mediastream/peercall.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/mediastream/peercall.js b/static/js/mediastream/peercall.js index 7dc4308b..0c1c2041 100644 --- a/static/js/mediastream/peercall.js +++ b/static/js/mediastream/peercall.js @@ -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));