Simulcast Issue 2014: Not clear how to set # of layers when answering an offer with a track

Harald has raised a rather interesting question in Issue 2014 (https://github.com/w3c/webrtc-pc/issues/2014).

In a typical conference the SFU sends the Offer because it alone knows how many participants are in the conference. The SFU will typically not have simulcast configured in its Offer m-lines (because the browser typically won't support receiving simulcast). Yet the browser may be sending simulcast to the SFU, so it needs to be able to configure how many simulcast streams it will send in the Answer. How does this work?

My (somewhat shaky) response is that the SFU indicates how many simulcast streams it is willing to receive by including a=rid:x recv lines, and when the application handles the track event it can determine how many streams can be sent by consulting the number of encodings and rids included in transceiver.sender.getParameters().

Received on Thursday, 25 October 2018 00:59:31 UTC