[mirotalk] - add popup message if relay to TURN

This commit is contained in:
Miroslav Pejic
2024-02-27 13:10:03 +01:00
parent 969152935f
commit a28e7a666b
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.2.91
* @version 1.2.92
*
*/
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.2.91",
"version": "1.2.92",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+9 -1
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.2.91
* @version 1.2.92
*
*/
@@ -1872,6 +1872,14 @@ async function handleOnIceCandidate(peer_id) {
candidate: event.candidate.candidate,
},
});
// Check if this is an ICE candidate for a relayed connection
if (event.candidate.candidate.indexOf('relay') !== -1) {
userLog(
'toast',
'WebRTC traffic is relayed through a TURN server due to restrictive NAT or firewall configurations',
6000,
);
}
};
}