<div dir="ltr">Matthew,<div>It actually is correct and works fine in chrome. The issue is that there is little documentation on the JS side as well as to how to handle it. In the RTCPeerConnection.onTrack event handler you have to create a new mediastream using the 'track' like this (not the stream):</div><div><br></div><div>let track = new MediaStream([event.track]);</div><div>window.document.getElementById('rearCam').srcObject = track;<br></div><div><br></div><div>All previous documentation points to plan-b semantics in which onTrack would fire for every separate stream added so the following would only play the first 'track' in the stream, even though stream has 2 tracks according to the unified plan:</div><div><div><br></div><div>window.document.getElementById('rearCam').srcObject = event.streams[0];<br></div><div></div></div><div><br></div><div>So surprised there's no documentation on this - or I wonder if I'm doing something wrong :) </div><div><br></div><div>Now trying to figure out why adding fec to the transceiver causes the second track to stop decoding on the chrome side :)</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 18, 2020 at 9:31 PM Matthew Waters <<a href="mailto:ystreet00@gmail.com">ystreet00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    Unified plan SDP's are mostly supported where the interface makes
    sense.<br>
    <br>
    a=msid is currently a browser-specific thing and GStreamer doesn't
    really have a concept of grouping separate tracks per-se.  Maybe
    GstStream could be useful here for that but that would need to be
    investigated and implemented.<br>
    <br>
    Unfortunately I'm not quite sure exactly how the browsers expect
    multiple streams of the same type to work SDP-wise.<br>
    <br>
    Cheers<br>
    -Matt<br>
    <br>
    <div>On 17/10/20 1:35 pm, Faraz Khan wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Is unified plan sdp semantics supported? I'm
        trying to negotiate a peer connection with 5 streams and though
        the sdp seems mostly correct it's missing a=msid lines (which I
        could add myself maybe)
        <div dir="auto"><br>
        </div>
        <div dir="auto">If I try to receive this in chrome the peer
          connection.ontrack method gets fired the correct number of
          times (as many video streams I add) but they are all pointing
          to the first stream. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Is there some way I can munge the sdp manually
          to make this work?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks!</div>
        <div dir="auto"><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div>