[mirotalksfu] - add some logs and comments

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-23 23:43:15 +01:00
الأصل 1fd5ac9ea1
التزام 968ca95ab4
7 ملفات معدلة مع 30 إضافات و11 حذوفات

عرض الملف

@@ -200,11 +200,11 @@ module.exports = class Peer {
temporalLayer,
});
} else {
log.debug('Producer ----->', { type: type, kind: kind });
log.debug('Producer ----->', { type, kind });
}
producer.on('transportclose', () => {
log.debug('Producer "transportclose" event');
log.debug('Producer "transportclose" event', { producerId: id });
this.closeProducer(id);
});
@@ -281,6 +281,7 @@ module.exports = class Peer {
const { scalabilityMode } = rtpParameters.encodings[0];
const spatialLayer = parseInt(scalabilityMode.substring(1, 2)); // 1/2/3
const temporalLayer = parseInt(scalabilityMode.substring(3, 4)); // 1/2/3
try {
await consumer.setPreferredLayers({
spatialLayer: spatialLayer,
@@ -291,13 +292,18 @@ module.exports = class Peer {
spatialLayer,
temporalLayer,
});
} catch (error) {}
} catch (error) {
log.error('Failed to set preferred layers', {
consumerId: id,
error,
});
}
} else {
log.debug('Consumer ----->', { type: type, kind: kind });
log.debug('Consumer ----->', { type, kind });
}
consumer.on('transportclose', () => {
log.debug('Consumer "transportclose" event');
log.debug('Consumer "transportclose" event', { consumerId: id });
this.removeConsumer(id);
});

عرض الملف

@@ -574,6 +574,18 @@ module.exports = class Room {
const { peer_name } = peer;
transport.observer.on('newproducer', (producer) => {
log.debug('---> new producer created [id:%s]', producer.id);
});
transport.observer.on('newconsumer', (consumer) => {
log.debug('---> new consumer created [id:%s]', consumer.id);
});
transport.observer.on('close', () => {
log.debug('---> transport close [id:%s]', transport.id);
});
transport.on('icestatechange', (iceState) => {
if (iceState === 'disconnected' || iceState === 'closed') {
log.debug('Transport closed "icestatechange" event', {

عرض الملف

@@ -55,7 +55,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.62
* @version 1.6.63
*
*/

عرض الملف

@@ -401,6 +401,7 @@ module.exports = {
ui: {
/*
Customize your MiroTalk instance
Branding and customizations require a license: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
*/
brand: {
app: {

عرض الملف

@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.6.62",
"version": "1.6.63",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.62
* @version 1.6.63
*
*/
@@ -4618,7 +4618,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.6.62',
title: 'WebRTC SFU v1.6.63',
html: `
<br />
<div id="about">

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.62
* @version 1.6.63
*
*/
@@ -2230,7 +2230,7 @@ class RoomClient {
this.closeProducer(mediaType.audioTab);
});
} catch (err) {
console.error('Produce error:', err);
console.error('Produce Screen Audio error:', err);
}
}