Update server

This commit is contained in:
Sergiu Toma 2022-11-23 00:34:12 +02:00
parent 1a7b44807d
commit 3c23c6791d
2 changed files with 20 additions and 20 deletions

View File

@ -20670,17 +20670,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,

View File

@ -312,17 +312,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,