LINXD-2342-dispatcher-audio #29
2
app.js
2
app.js
@ -370,6 +370,8 @@ peers.on('connection', async (socket) => {
|
|||||||
? videoCalls[callId].receiverSocket
|
? videoCalls[callId].receiverSocket
|
||||||
: videoCalls[callId].initiatorSocket;
|
: videoCalls[callId].initiatorSocket;
|
||||||
|
|
||||||
|
// callId - Id of the call
|
||||||
|
// kind - producer type: audio/video
|
||||||
socketToEmit.emit('new-producer', { callId, kind });
|
socketToEmit.emit('new-producer', { callId, kind });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);
|
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user