[mirotalksfu] - improvements
هذا الالتزام موجود في:
@@ -170,7 +170,11 @@ module.exports = class Peer {
|
|||||||
throw new Error(`Producer transport with ID ${producerTransportId} not found`);
|
throw new Error(`Producer transport with ID ${producerTransportId} not found`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const producerTransport = this.transports.get(producerTransportId);
|
const producerTransport = this.getTransport(producerTransportId);
|
||||||
|
|
||||||
|
if (!producerTransport) {
|
||||||
|
throw new Error(`Consumer transport with ID ${producerTransportId} not found for peer ${this.peer_name}`);
|
||||||
|
}
|
||||||
|
|
||||||
let producer;
|
let producer;
|
||||||
try {
|
try {
|
||||||
@@ -281,7 +285,11 @@ module.exports = class Peer {
|
|||||||
throw new Error(`Consumer transport with ID ${consumer_transport_id} not found`);
|
throw new Error(`Consumer transport with ID ${consumer_transport_id} not found`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const consumerTransport = this.transports.get(consumer_transport_id);
|
const consumerTransport = this.getTransport(consumer_transport_id);
|
||||||
|
|
||||||
|
if (!consumerTransport) {
|
||||||
|
throw new Error(`Consumer transport with ID ${consumer_transport_id} not found for peer ${this.peer_name}`);
|
||||||
|
}
|
||||||
|
|
||||||
let consumer;
|
let consumer;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -799,6 +799,12 @@ module.exports = class Room {
|
|||||||
|
|
||||||
const { id } = peerProducer;
|
const { id } = peerProducer;
|
||||||
|
|
||||||
|
const producerTransport = peer.getTransport(producerTransportId);
|
||||||
|
|
||||||
|
if (!producerTransport) {
|
||||||
|
throw new Error(`Producer transport with ID ${producerTransportId} not found for peer ${peer_name}`);
|
||||||
|
}
|
||||||
|
|
||||||
this.broadCast(socket_id, 'newProducers', [
|
this.broadCast(socket_id, 'newProducers', [
|
||||||
{
|
{
|
||||||
producer_id: id,
|
producer_id: id,
|
||||||
@@ -810,10 +816,12 @@ module.exports = class Room {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
log.debug('Producer created successfully', {
|
log.debug('Producer created successfully', {
|
||||||
|
producerTransportId,
|
||||||
producer_id: id,
|
producer_id: id,
|
||||||
peer_name: peer.peer_name,
|
peer_name: peer.peer_name,
|
||||||
kind,
|
kind,
|
||||||
type,
|
type,
|
||||||
|
transport_state: `ICE:${producerTransport.iceState}, DTLS:${producerTransport.dtlsState}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
@@ -875,6 +883,12 @@ module.exports = class Room {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const consumerTransport = peer.getTransport(consumer_transport_id);
|
||||||
|
|
||||||
|
if (!consumerTransport) {
|
||||||
|
throw new Error(`Consumer transport with ID ${consumer_transport_id} not found for peer ${peer_name}`);
|
||||||
|
}
|
||||||
|
|
||||||
const { consumer, params } = peerConsumer;
|
const { consumer, params } = peerConsumer;
|
||||||
const { id, kind } = consumer;
|
const { id, kind } = consumer;
|
||||||
|
|
||||||
@@ -895,11 +909,13 @@ module.exports = class Room {
|
|||||||
});
|
});
|
||||||
|
|
||||||
log.debug('Consumer created successfully', {
|
log.debug('Consumer created successfully', {
|
||||||
|
consumer_transport_id,
|
||||||
consumer_id: id,
|
consumer_id: id,
|
||||||
producer_id: producerId,
|
producer_id: producerId,
|
||||||
peer_name,
|
peer_name,
|
||||||
kind,
|
kind,
|
||||||
type,
|
type,
|
||||||
|
transport_state: `ICE:${consumerTransport.iceState}, DTLS:${consumerTransport.dtlsState}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ dev dependencies: {
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.8.70
|
* @version 1.8.71
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.8.70",
|
"version": "1.8.71",
|
||||||
"description": "WebRTC SFU browser-based video calls",
|
"description": "WebRTC SFU browser-based video calls",
|
||||||
"main": "Server.js",
|
"main": "Server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ let BRAND = {
|
|||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
imageUrl: '../images/mirotalk-logo.gif',
|
imageUrl: '../images/mirotalk-logo.gif',
|
||||||
title: '<strong>WebRTC SFU v1.8.70</strong>',
|
title: '<strong>WebRTC SFU v1.8.71</strong>',
|
||||||
html: `
|
html: `
|
||||||
<button
|
<button
|
||||||
id="support-button"
|
id="support-button"
|
||||||
|
|||||||
@@ -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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.8.70
|
* @version 1.8.71
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -5479,7 +5479,7 @@ function showAbout() {
|
|||||||
position: 'center',
|
position: 'center',
|
||||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||||
customClass: { image: 'img-about' },
|
customClass: { image: 'img-about' },
|
||||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.70',
|
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.71',
|
||||||
html: `
|
html: `
|
||||||
<br />
|
<br />
|
||||||
<div id="about">
|
<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 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
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.8.70
|
* @version 1.8.71
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم