LINXD-2270-p2 #19
4
app.js
4
app.js
@ -390,9 +390,9 @@ peers.on('connection', async socket => {
|
|||||||
*/
|
*/
|
||||||
socket.on('consume', async ({ rtpCapabilities }, callback) => {
|
socket.on('consume', async ({ rtpCapabilities }, callback) => {
|
||||||
try {
|
try {
|
||||||
console.log(`[consume] rtpCapabilities: ${JSON.stringify(rtpCapabilities)}`);
|
|
||||||
|
|
||||||
const callId = socketDetails[socket.id];
|
const callId = socketDetails[socket.id];
|
||||||
|
console.log(`[consume] socket ${socket.id} | callId ${callId} | rtpCapabilities: ${JSON.stringify(rtpCapabilities)}`);
|
||||||
|
|
||||||
console.log('[consume] callId', callId);
|
console.log('[consume] callId', callId);
|
||||||
let canConsumeVideo, canConsumeAudio;
|
let canConsumeVideo, canConsumeAudio;
|
||||||
if (isInitiator(callId, socket.id)) {
|
if (isInitiator(callId, socket.id)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user