Update
This commit is contained in:
parent
8634cb4b6e
commit
e3536e87cd
@ -20684,19 +20684,19 @@ const connectSendTransport = async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Produce audio
|
// Produce audio
|
||||||
producerAudio = await producerTransport.produce(audioParams)
|
// producerAudio = await producerTransport.produce(audioParams)
|
||||||
console.log('audioParams', audioParams);
|
// console.log('audioParams', audioParams);
|
||||||
console.log('producerAudio', producerAudio);
|
// console.log('producerAudio', producerAudio);
|
||||||
|
|
||||||
producerAudio.on('trackended', () => {
|
// producerAudio.on('trackended', () => {
|
||||||
console.log('track ended')
|
// console.log('track ended')
|
||||||
// close audio track
|
// // close audio track
|
||||||
})
|
// })
|
||||||
|
|
||||||
producerAudio.on('transportclose', () => {
|
// producerAudio.on('transportclose', () => {
|
||||||
console.log('transport ended')
|
// console.log('transport ended')
|
||||||
// close audio track
|
// // close audio track
|
||||||
})
|
// })
|
||||||
|
|
||||||
const answer = {
|
const answer = {
|
||||||
origin_asset_id: ASSET_ID,
|
origin_asset_id: ASSET_ID,
|
||||||
|
@ -326,19 +326,19 @@ const connectSendTransport = async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Produce audio
|
// Produce audio
|
||||||
producerAudio = await producerTransport.produce(audioParams)
|
// producerAudio = await producerTransport.produce(audioParams)
|
||||||
console.log('audioParams', audioParams);
|
// console.log('audioParams', audioParams);
|
||||||
console.log('producerAudio', producerAudio);
|
// console.log('producerAudio', producerAudio);
|
||||||
|
|
||||||
producerAudio.on('trackended', () => {
|
// producerAudio.on('trackended', () => {
|
||||||
console.log('track ended')
|
// console.log('track ended')
|
||||||
// close audio track
|
// // close audio track
|
||||||
})
|
// })
|
||||||
|
|
||||||
producerAudio.on('transportclose', () => {
|
// producerAudio.on('transportclose', () => {
|
||||||
console.log('transport ended')
|
// console.log('transport ended')
|
||||||
// close audio track
|
// // close audio track
|
||||||
})
|
// })
|
||||||
|
|
||||||
const answer = {
|
const answer = {
|
||||||
origin_asset_id: ASSET_ID,
|
origin_asset_id: ASSET_ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user