From e59f134a68a9c3b3b961ad08a62501fd51657fac Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 24 Nov 2022 16:37:44 +0200 Subject: [PATCH] Update server --- public/bundle.js | 21 +++++++++++---------- public/index.js | 1 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 7256e97..99709c6 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20701,17 +20701,18 @@ 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 + }) diff --git a/public/index.js b/public/index.js index d1d4dd5..8b046bb 100644 --- a/public/index.js +++ b/public/index.js @@ -352,6 +352,7 @@ const connectSendTransport = async () => { producerAudio.on('transportclose', () => { console.log('transport ended') + // close video track })