[mirotalksfu] - improve geoLocation, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2025-06-10 22:55:51 +02:00
الأصل 7869df811e
التزام b720a3acc8
5 ملفات معدلة مع 16 إضافات و10 حذوفات

عرض الملف

@@ -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.62 * @version 1.8.63
* *
*/ */

عرض الملف

@@ -1,6 +1,6 @@
{ {
"name": "mirotalksfu", "name": "mirotalksfu",
"version": "1.8.62", "version": "1.8.63",
"description": "WebRTC SFU browser-based video calls", "description": "WebRTC SFU browser-based video calls",
"main": "Server.js", "main": "Server.js",
"scripts": { "scripts": {
@@ -61,7 +61,7 @@
"@aws-sdk/lib-storage": "^3.826.0", "@aws-sdk/lib-storage": "^3.826.0",
"@mattermost/client": "10.8.0", "@mattermost/client": "10.8.0",
"@ngrok/ngrok": "1.5.1", "@ngrok/ngrok": "1.5.1",
"@sentry/node": "^9.27.0", "@sentry/node": "^9.28.0",
"async-mutex": "^0.5.0", "async-mutex": "^0.5.0",
"axios": "^1.9.0", "axios": "^1.9.0",
"chokidar": "^4.0.3", "chokidar": "^4.0.3",
@@ -84,7 +84,7 @@
"mediasoup": "3.16.0", "mediasoup": "3.16.0",
"mediasoup-client": "3.11.0", "mediasoup-client": "3.11.0",
"nodemailer": "^7.0.3", "nodemailer": "^7.0.3",
"openai": "^5.1.1", "openai": "^5.3.0",
"qs": "6.14.0", "qs": "6.14.0",
"sanitize-filename": "^1.6.3", "sanitize-filename": "^1.6.3",
"socket.io": "4.8.1", "socket.io": "4.8.1",
@@ -95,7 +95,7 @@
"@babel/core": "^7.27.4", "@babel/core": "^7.27.4",
"@babel/preset-env": "^7.27.2", "@babel/preset-env": "^7.27.2",
"babel-loader": "^10.0.0", "babel-loader": "^10.0.0",
"mocha": "^11.5.0", "mocha": "^11.6.0",
"node-fetch": "^3.3.2", "node-fetch": "^3.3.2",
"nodemon": "^3.1.10", "nodemon": "^3.1.10",
"prettier": "3.5.3", "prettier": "3.5.3",

عرض الملف

@@ -64,7 +64,7 @@ let BRAND = {
}, },
about: { about: {
imageUrl: '../images/mirotalk-logo.gif', imageUrl: '../images/mirotalk-logo.gif',
title: '<strong>WebRTC SFU v1.8.62</strong>', title: '<strong>WebRTC SFU v1.8.63</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.62 * @version 1.8.63
* *
*/ */
@@ -5465,7 +5465,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.62', title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.63',
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.62 * @version 1.8.63
* *
*/ */
@@ -9352,7 +9352,7 @@ class RoomClient {
}); });
} }
getPeerGeoLocation(peer_id) { getPeerGeoLocation(peer_id, options = {}) {
if ('geolocation' in navigator) { if ('geolocation' in navigator) {
navigator.geolocation.getCurrentPosition( navigator.geolocation.getCurrentPosition(
function (position) { function (position) {
@@ -9387,6 +9387,12 @@ class RoomClient {
} }
rc.sendPeerGeoLocation(peer_id, 'geoLocationKO', `${rc.peer_name}: ${geoError}`); rc.sendPeerGeoLocation(peer_id, 'geoLocationKO', `${rc.peer_name}: ${geoError}`);
rc.userLog('warning', geoError, 'top-end', 5000); rc.userLog('warning', geoError, 'top-end', 5000);
},
{
enableHighAccuracy: true,
timeout: 10000,
maximumAge: 0,
...options,
} }
); );
} else { } else {