(node:6725) UnhandledPromiseRejectionWarning: Error: MID already exists in RTP listener [mid:0]
at Channel._processMessage (/home/sinapsis/sfu/node_modules/mediasoup/lib/Channel.js:206:37)
at Socket.Channel._consumerSocket.on (/home/sinapsis/sfu/node_modules/mediasoup/lib/Channel.js:68:34)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
Hola. Tengo este error y no consigo saber la razón que lo produce. Podrían ayudarme por favor
To connect multiple peers, only a transport to send and a transport to receive is needed on the server side? Can each transport have only one producer or one consumer for audio and one for video?
From what I can understand, I must validate if any of the peers have already created both the shipping and receiving transport and the producer and the consumer respectively, is that correct?
Ok, sorry, I didn’t know how to explain. One consumer per kind. Audio, Video and sharescreen. I have reviewed the documentation but I am trying to understand the architecture, so I decided to ask about the error and know if I am understanding correctly.
I already solved the error !!!. What happens is that a peer was running the same producer more than twice for some reason. I did a validation so it would only run once and it works.