State = (RTCIceConnectionState state) {
      if (pluginHandle.pc != null) pluginHandle.iceState(state);
    };

    pluginHandle.pc.onIceCandidate = (RTCIceCandidate candidate) {
      if (candidate == null ||
          (Janus.webRTCAdapter[&#39;browserDetails&#39;][&#39;browser&#39;] == &#39;edge&#39; &amp;&amp;
              candidate.candidate.indexOf(&#39;endOfCandidates&#39;) &gt; 0)) {
        Janus.log(&quot;End of candidates.&quot;);
        pluginHandle.iceDone = true;
        Janus.log(pluginHand