Update server

This commit is contained in:
Sergiu Toma 2022-11-24 16:37:44 +02:00
parent aad96b72f2
commit e59f134a68
2 changed files with 12 additions and 10 deletions

View File

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

View File

@ -352,6 +352,7 @@ const connectSendTransport = async () => {
producerAudio.on('transportclose', () => {
console.log('transport ended')
// close video track
})