Update server

This commit is contained in:
Sergiu Toma 2022-11-22 23:12:55 +02:00
parent d1063803b9
commit 4dbb7ad554

View File

@ -325,17 +325,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
// })
const answer = {
origin_asset_id: ASSET_ID,