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