sample STUN / TURN server
[
{
"urls": ["stun:eu-turn6.xirsys.com"]
},
{
"username": "nzHAcflZ43INLxcziL6p852wVY8mDBNXjiF0YEozsPXHFGIpvRVHkEjVJqDkQjvQAAAAAGEjxktmb29iYXI=",
"credential": "589e786e-042b-11ec-855f-0242ac140004",
"urls": [
"turn:eu-turn6.xirsys.com:80?transport=udp",
"turn:eu-turn6.xirsys.com:3478?transport=udp",
"turn:eu-turn6.xirsys.com:80?transport=tcp"
]
}
]
Idea how to delay new Producer
on.newProducer(producer => {
router.createDirectTransport()
const consumer = transport.consume({id: producer.id})
consumer.on("rtp", package => queue.send(package))
plainTransport = router.createDirectTransport()
delayedProducer = plainTransport.produce()
queue.on(package => deplayedProducer.send(package))
const delayedConsumer = plainTransport.consume({producerId: delayedProducer.id})
externalClient.enableMic({track: delayedConsumer.track})
)}
```