andle.candidates.length &gt; 0) {
          for (var i = 0; i &lt; pluginHandle.candidates.length; i++) {
            RTCIceCandidate candidate = pluginHandle.candidates[i];
            Janus.debug(&quot;Adding remote candidate:&quot; + candidate.toString());
            if (candidate == null) {
              &#47;&#47; end-of-candidates
              pluginHandle.pc.addCandidate(Janus.endOfCandidates);
            } else {
              &#47;&#47; New candidate
              pluginHandle.pc.addCandidate(ca