Update
This commit is contained in:
parent
8634cb4b6e
commit
e3536e87cd
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user