From f20e1ad260516391d32c006803259a22f00e6842 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 22 Nov 2022 20:04:43 +0200 Subject: [PATCH] Update build --- public/bundle.js | 6 ++++-- public/index.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 63cda5a..0cb30b6 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20672,7 +20672,8 @@ const connectSendTransport = async () => { // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce // this action will trigger the 'connect' and 'produce' events above producerVideo = await producerTransport.produce(videoParams) - + console.log('producerVideo', producerVideo); + producerVideo.on('trackended', () => { console.log('track ended') // close video track @@ -20683,7 +20684,8 @@ const connectSendTransport = async () => { // close video track }) - // producerAudio = await producerTransport.produce(audioParams) + producerAudio = await producerTransport.produce(audioParams) + console.log('producerAudio', producerAudio); // producerAudio.on('trackended', () => { // console.log('track ended') diff --git a/public/index.js b/public/index.js index 3595a2b..3f2dc63 100644 --- a/public/index.js +++ b/public/index.js @@ -314,7 +314,8 @@ const connectSendTransport = async () => { // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce // this action will trigger the 'connect' and 'produce' events above producerVideo = await producerTransport.produce(videoParams) - + console.log('producerVideo', producerVideo); + producerVideo.on('trackended', () => { console.log('track ended') // close video track @@ -325,7 +326,8 @@ const connectSendTransport = async () => { // close video track }) - // producerAudio = await producerTransport.produce(audioParams) + producerAudio = await producerTransport.produce(audioParams) + console.log('producerAudio', producerAudio); // producerAudio.on('trackended', () => { // console.log('track ended')