vers.length &gt; 0) {
          for (var t in transceivers) {
            &#47;&#47; TODO sender is MediaStreamTrack
            if ((t[&#39;sender&#39;] &amp;&amp;
                    t[&#39;sender&#39;].track &amp;&amp;
                    t[&#39;sender&#39;].track.kind == &quot;video&quot;) ||
                (t[&#39;receiver&#39;] &amp;&amp;
                    t[&#39;receiver&#39;].track &amp;&amp;
                    t[&#39;receiver&#39;].track.kind == &quot;video&quot;)) {
              videoTranscei