Update server

This commit is contained in:
Sergiu Toma 2022-11-29 03:41:00 +02:00
parent 0bdc6fac3a
commit 39efdd12b7
2 changed files with 6 additions and 4 deletions

View File

@ -20689,8 +20689,9 @@ const connectSendTransport = async () => {
// close video track // close video track
}) })
console.log('doIHaveAudio', doIHaveAudio);
// Video is mandatory, but audio may not be included // Video is mandatory, but audio may not be included
if (doIHaveAudio) { // if (doIHaveAudio) {
console.log('audioParams', audioParams); console.log('audioParams', audioParams);
producerAudio = await producerTransport.produce(audioParams) producerAudio = await producerTransport.produce(audioParams)
console.log('producerAudio', producerAudio); console.log('producerAudio', producerAudio);
@ -20703,7 +20704,7 @@ const connectSendTransport = async () => {
console.log('transport ended') console.log('transport ended')
// close video track // close video track
}) })
} // }
const answer = { const answer = {
origin_asset_id: ASSET_ID, origin_asset_id: ASSET_ID,

View File

@ -331,8 +331,9 @@ const connectSendTransport = async () => {
// close video track // close video track
}) })
console.log('doIHaveAudio', doIHaveAudio);
// Video is mandatory, but audio may not be included // Video is mandatory, but audio may not be included
if (doIHaveAudio) { // if (doIHaveAudio) {
console.log('audioParams', audioParams); console.log('audioParams', audioParams);
producerAudio = await producerTransport.produce(audioParams) producerAudio = await producerTransport.produce(audioParams)
console.log('producerAudio', producerAudio); console.log('producerAudio', producerAudio);
@ -345,7 +346,7 @@ const connectSendTransport = async () => {
console.log('transport ended') console.log('transport ended')
// close video track // close video track
}) })
} // }
const answer = { const answer = {
origin_asset_id: ASSET_ID, origin_asset_id: ASSET_ID,