Update server
This commit is contained in:
parent
ae7a8ed9ce
commit
0bdc6fac3a
6
app.js
6
app.js
@ -379,13 +379,13 @@ peers.on('connection', async socket => {
|
||||
|
||||
if (canConsumeVideo && !canConsumeAudio) {
|
||||
console.log('1');
|
||||
const videoParams = consumeVideo(callId, rtpCapabilities)
|
||||
const videoParams = await consumeVideo(callId, rtpCapabilities)
|
||||
console.log('videoParams', videoParams);
|
||||
callback({ videoParams, audioParams: null });
|
||||
} else if (canConsumeVideo && canConsumeAudio) {
|
||||
console.log('2');
|
||||
const videoParams = consumeVideo(callId, rtpCapabilities)
|
||||
const audioParams = consumeAudio(callId, rtpCapabilities)
|
||||
const videoParams = await consumeVideo(callId, rtpCapabilities)
|
||||
const audioParams = await consumeAudio(callId, rtpCapabilities)
|
||||
callback({ videoParams, audioParams });
|
||||
} else {
|
||||
console.log(`[consume] Can't consume | callId ${callId}`);
|
||||
|
Loading…
Reference in New Issue
Block a user