Add log on consume
This commit is contained in:
parent
afb328ea3b
commit
cd887142f7
8
app.js
8
app.js
@ -185,10 +185,6 @@ peers.on('connection', async socket => {
|
|||||||
try {
|
try {
|
||||||
console.log('consume', rtpCapabilities, callId);
|
console.log('consume', rtpCapabilities, callId);
|
||||||
// check if the router can consume the specified producer
|
// check if the router can consume the specified producer
|
||||||
console.log('[consume] canConsume', router[callId].canConsume({
|
|
||||||
producerId: producer.id,
|
|
||||||
rtpCapabilities
|
|
||||||
}));
|
|
||||||
if (router[callId].canConsume({
|
if (router[callId].canConsume({
|
||||||
producerId: producer.id,
|
producerId: producer.id,
|
||||||
rtpCapabilities
|
rtpCapabilities
|
||||||
@ -222,11 +218,9 @@ peers.on('connection', async socket => {
|
|||||||
kind: consumer.kind,
|
kind: consumer.kind,
|
||||||
rtpParameters: consumer.rtpParameters,
|
rtpParameters: consumer.rtpParameters,
|
||||||
}
|
}
|
||||||
console.log('[consume] params', params);
|
|
||||||
// send the parameters to the client
|
// send the parameters to the client
|
||||||
callback({ params })
|
callback({ params })
|
||||||
} else {
|
|
||||||
console.log("Can't consume");
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error.message)
|
console.log(error.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user