Update server

This commit is contained in:
Sergiu Toma 2022-11-22 20:42:55 +02:00
parent d1ad8b4d3a
commit 127f17cd97

View File

@ -315,7 +315,6 @@ const connectSendTransport = async () => {
// 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
@ -326,9 +325,8 @@ const connectSendTransport = async () => {
// close video track
})
producerAudio = await producerTransport.produce(audioParams)
console.log('producerAudio', producerAudio);
// producerAudio = await producerTransport.produce(audioParams)
// console.log('producerAudio', producerAudio);
// producerAudio.on('trackended', () => {
// console.log('track ended')
// // close video track