Update server

This commit is contained in:
Sergiu Toma 2022-11-24 16:36:36 +02:00
parent 3e4c0a32bc
commit aad96b72f2

View File

@ -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
})