[mirotalksfu] - improve geoLocation, update dep

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

عرض الملف

@@ -64,7 +64,7 @@ let BRAND = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: '<strong>WebRTC SFU v1.8.62</strong>',
title: '<strong>WebRTC SFU v1.8.63</strong>',
html: `
<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 CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.8.62
* @version 1.8.63
*
*/
@@ -5465,7 +5465,7 @@ function showAbout() {
position: 'center',
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.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: `
<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.8.62
* @version 1.8.63
*
*/
@@ -9352,7 +9352,7 @@ class RoomClient {
});
}
getPeerGeoLocation(peer_id) {
getPeerGeoLocation(peer_id, options = {}) {
if ('geolocation' in navigator) {
navigator.geolocation.getCurrentPosition(
function (position) {
@@ -9387,6 +9387,12 @@ class RoomClient {
}
rc.sendPeerGeoLocation(peer_id, 'geoLocationKO', `${rc.peer_name}: ${geoError}`);
rc.userLog('warning', geoError, 'top-end', 5000);
},
{
enableHighAccuracy: true,
timeout: 10000,
maximumAge: 0,
...options,
}
);
} else {