I’m trying to write an application where I forward packets from a WebRTCTransport
through a DirectTransport
. To do this, I make a WebRTCTransport producer (producer1
), consume it with the DirectTransport (consumer1
), and then use on('rtp')
to send those packets through a second producer (producer2
). Eventually, these packets are supposed to go to another WebRTCTransport
to get to a client; the DirectTransport
is there in order to do real-time packet analysis in JavaScript.
The issue I’m running into is that I can’t create producer2
using consumer1
's rtpParameters if producer
is simulcast. This is because simulcast consumers output a single stream with a scalability mode, rather than multiple streams; so then producer2
has to be SVC instead of simulcast. But mediasoup doesn’t (I think?) support any codecs with both simulcast (for producer1
) and SVC (for producer2
), so I can’t get any packets to go through the whole pipeline.
I assume, though, that what I’m trying to do must be supported somehow, since mediasoup is designed for architectures with forwarding in them, e.g. forwarding packets through PipeTransports to other mediasoup servers, etc. How is this done? Can I tell the simulcast producer to keep its streams separate so that I can forward them through other transports?