[mirotalk] - add popup message if relay to TURN
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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,
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user