diff --git a/app/src/Room.js b/app/src/Room.js index 5cde5d31..c5f91f22 100644 --- a/app/src/Room.js +++ b/app/src/Room.js @@ -547,7 +547,7 @@ module.exports = class Room { enableUdp: true, enableTcp: true, preferUdp: true, - iceConsentTimeout: 20, + iceConsentTimeout: 30, initialAvailableOutgoingBitrate, }; diff --git a/app/src/Server.js b/app/src/Server.js index 73208068..95a1b98e 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -58,7 +58,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.7.63 + * @version 1.7.64 * */ @@ -1823,9 +1823,22 @@ function startServer() { const { room, peer } = getRoomAndPeer(socket); - if (!peer) return; + if (!peer) { + console.error('Peer not found for socket:', socket.id); + return; + } - peer.updatePeerInfo(data); // peer_info.audio OR video OFF + if (typeof peer.updatePeerInfo !== 'function') { + console.error('updatePeerInfo is not a function on peer:', peer); + return; + } + + peer.updatePeerInfo(data); // peer_info.audio OR video OFF //* + + if (typeof room.closeProducer !== 'function') { + console.error('closeProducer is not a function on room:', room); + return; + } room.closeProducer(socket.id, data.producer_id); }); diff --git a/package.json b/package.json index d723f60c..1fcbbd7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.7.63", + "version": "1.7.64", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -90,7 +90,7 @@ "mocha": "^11.1.0", "node-fetch": "^3.3.2", "nodemon": "^3.1.9", - "prettier": "3.5.2", + "prettier": "3.5.3", "proxyquire": "^2.1.3", "should": "^13.2.3", "sinon": "^19.0.2" diff --git a/public/js/Brand.js b/public/js/Brand.js index de73dcc1..ab035b69 100644 --- a/public/js/Brand.js +++ b/public/js/Brand.js @@ -64,7 +64,7 @@ let BRAND = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC SFU v1.7.63', + title: 'WebRTC SFU v1.7.64', html: `