This commit is contained in:
Sergiu Toma 2022-12-19 13:19:58 +02:00
parent 8634cb4b6e
commit e3536e87cd
2 changed files with 22 additions and 22 deletions

View File

@ -20684,19 +20684,19 @@ const connectSendTransport = async () => {
})
// Produce audio
producerAudio = await producerTransport.produce(audioParams)
console.log('audioParams', audioParams);
console.log('producerAudio', producerAudio);
// producerAudio = await producerTransport.produce(audioParams)
// console.log('audioParams', audioParams);
// console.log('producerAudio', producerAudio);
producerAudio.on('trackended', () => {
console.log('track ended')
// close audio track
})
// producerAudio.on('trackended', () => {
// console.log('track ended')
// // close audio track
// })
producerAudio.on('transportclose', () => {
console.log('transport ended')
// close audio track
})
// producerAudio.on('transportclose', () => {
// console.log('transport ended')
// // close audio track
// })
const answer = {
origin_asset_id: ASSET_ID,

View File

@ -326,19 +326,19 @@ const connectSendTransport = async () => {
})
// Produce audio
producerAudio = await producerTransport.produce(audioParams)
console.log('audioParams', audioParams);
console.log('producerAudio', producerAudio);
// producerAudio = await producerTransport.produce(audioParams)
// console.log('audioParams', audioParams);
// console.log('producerAudio', producerAudio);
producerAudio.on('trackended', () => {
console.log('track ended')
// close audio track
})
// producerAudio.on('trackended', () => {
// console.log('track ended')
// // close audio track
// })
producerAudio.on('transportclose', () => {
console.log('transport ended')
// close audio track
})
// producerAudio.on('transportclose', () => {
// console.log('transport ended')
// // close audio track
// })
const answer = {
origin_asset_id: ASSET_ID,