// snippet from the mediasoup server that actually sets up the `RtpStreamer` room.on('newpeer', (peer) => { peer.on('newproducer', (producer) => { let rtpParams = { remoteIP: '127.0.0.1', remotePort: (producer.kind === 'audio') ? 10000 : 10002 } room.createRtpStreamer(producer, rtpParams).then((streamer) => { console.log('started mirroring RTP for', producer.kind); }); }); });