Hello, on client side I see that the transport takes the below params:
createSendTransport({ id, iceParameters, iceCandidates, dtlsParameters, sctpParameters, iceServers, iceTransportPolicy, additionalSettings, proprietaryConstraints, appData }: TransportOptions): Transport;
In an example I see the the transport is having a callback on it to provide the server side producer id.
transport.on(‘produce’, async ({ kind, rtpParameters }, callback, errback) => {
try {
const { id } = await socket.request(‘produce’, {
transportId: transport.id,
kind,
rtpParameters,
});
callback({ id });
My question is, is the producerId needed/mandatory by the transport because we can have multiple producers on the same transport unlike the plainRTPTransport that can have only 1 producer/consumer ?
Is it an optional field or mandatory?
Thanks