Simulcast in videoroom rtp forward

Hi @lorenzo , in below lines (L.6005 and L.6006) in master branch as on December 3, 2024

				if(!json_is_true(stream_simulcast)) {
					/* Check if there's simulcast substreams we need to relay */

Is above logic correct? We want simulcast stream to be rtp forwarded to streaming plugin. So, we need 3 port values to be used. But if stream_simulcast value is set to true, above code prohibits port2 and port3 values to be used and no forwarders are getting created for substream 1 and substream 2.

Is this a bug or any intended usage present, which I missed to understand?

Please read the docs more carefully. The documentation of rtp_forward says:

"simulcast" : <true|false, set to true if the source is simulcast
and you want the forwarder to act as a regular viewer (single
stream being forwarded) or false otherwise (substreams
forwarded separately); optional, default=false>,

Setting simulcast: true means you send a single stream, just as if the recipient was a regular VideoRoom subscriber, so the forwarder chooses which layer to send depending on what’s available. If you want to send the simulcast streams separately, you must set simulcast: false.