From aad96b72f2d90598c3b452ae37718e74600652c1 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 24 Nov 2022 16:36:36 +0200 Subject: [PATCH] Update server --- public/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/public/index.js b/public/index.js index 4b46fc8..d1d4dd5 100644 --- a/public/index.js +++ b/public/index.js @@ -343,17 +343,17 @@ const connectSendTransport = async () => { // close video track }) - // producerAudio = await producerTransport.produce(audioParams) - // console.log('producerAudio', producerAudio); - // producerAudio.on('trackended', () => { - // console.log('track ended') - // // close video track - // }) + producerAudio = await producerTransport.produce(audioParams) + console.log('producerAudio', producerAudio); + producerAudio.on('trackended', () => { + console.log('track ended') + // close video track + }) - // producerAudio.on('transportclose', () => { - // console.log('transport ended') - // // close video track - // }) + producerAudio.on('transportclose', () => { + console.log('transport ended') + // close video track + })