[mirotalksfu] - add logs
هذا الالتزام موجود في:
@@ -136,14 +136,18 @@ module.exports = class Peer {
|
|||||||
return console.error('Consume failed', error);
|
return console.error('Consume failed', error);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Consumer ----->', { type: consumer.type });
|
log.debug('Consumer ----->', { type: consumer.type });
|
||||||
|
|
||||||
// https://www.w3.org/TR/webrtc-svc/
|
// https://www.w3.org/TR/webrtc-svc/
|
||||||
|
|
||||||
if (consumer.type === 'simulcast') {
|
if (consumer.type === 'simulcast') {
|
||||||
await consumer.setPreferredLayers({
|
await consumer.setPreferredLayers({
|
||||||
spatialLayer: 1,
|
spatialLayer: 1,
|
||||||
temporalLayer: 3,
|
temporalLayer: 3,
|
||||||
});
|
});
|
||||||
|
log.debug('Consumer scalabilityMode ----->', {
|
||||||
|
scalabilityMode: consumer.rtpParameters.encodings[0].scalabilityMode,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.consumers.set(consumer.id, consumer);
|
this.consumers.set(consumer.id, consumer);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "node app/src/Server.js",
|
"start": "node app/src/Server.js",
|
||||||
|
"debug": "DEBUG='mediasoup*' node app/src/Server.js",
|
||||||
"compile": "npx browserify public/sfu/MediasoupClientCompile.js -o public/sfu/MediasoupClient.js",
|
"compile": "npx browserify public/sfu/MediasoupClientCompile.js -o public/sfu/MediasoupClient.js",
|
||||||
"lint": "npx prettier --write ."
|
"lint": "npx prettier --write ."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1454,6 +1454,7 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
this.getConsumeStream(producer_id, peer_info.peer_id, type).then(
|
this.getConsumeStream(producer_id, peer_info.peer_id, type).then(
|
||||||
function ({ consumer, stream, kind }) {
|
function ({ consumer, stream, kind }) {
|
||||||
|
console.log('CONSUMER MEDIA TYPE ----> ' + type);
|
||||||
console.log('CONSUMER', consumer);
|
console.log('CONSUMER', consumer);
|
||||||
|
|
||||||
this.consumers.set(consumer.id, consumer);
|
this.consumers.set(consumer.id, consumer);
|
||||||
@@ -1462,8 +1463,6 @@ class RoomClient {
|
|||||||
if (isParticipantsListOpen) getRoomParticipants(true);
|
if (isParticipantsListOpen) getRoomParticipants(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('CONSUMER MEDIA TYPE ----> ' + type);
|
|
||||||
|
|
||||||
this.handleConsumer(consumer.id, type, stream, peer_name, peer_info);
|
this.handleConsumer(consumer.id, type, stream, peer_name, peer_info);
|
||||||
|
|
||||||
consumer.on(
|
consumer.on(
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم