Set initiatorSocketId to be dispatcher

This commit is contained in:
Sergiu Toma 2022-12-13 13:23:15 +02:00
parent 92fbecc36a
commit 3ca555ef9e

4
app.js
View File

@ -453,10 +453,6 @@ const consumeAudio = async (callId, rtpCapabilities) => {
console.log('producer of consumer closed', callId);
closeCall(callId);
});
if(isInitiator(callId, sockId)) {
}
return {
id: videoCalls[callId].consumerAudio.id,
producerId: videoCalls[callId].producerAudio.id,