[mirotalksfu] - add whoAreYou and api_room_exists endpoint

هذا الالتزام موجود في:
Miroslav Pejic
2024-10-19 19:25:43 +02:00
الأصل 4327234e3b
التزام a8469a00b1
8 ملفات معدلة مع 271 إضافات و9 حذوفات

عرض الملف

@@ -44,7 +44,7 @@ function login() {
// http://localhost:3010/join/test
const pathParts = window.location.pathname.split('/');
const roomPath = pathParts[pathParts.length - 1];
const roomPath = filterXSS(pathParts[pathParts.length - 1]);
if (username && password) {
axios

عرض الملف

@@ -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.5.90
* @version 1.5.91
*
*/
@@ -4500,7 +4500,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.5.90',
title: 'WebRTC SFU v1.5.91',
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.5.90
* @version 1.5.91
*
*/

17
public/js/WhoAreYou.js Normal file
عرض الملف

@@ -0,0 +1,17 @@
'use strict';
console.log(window.location);
const presenterLoginBtn = document.getElementById('presenterLoginButton');
const guestJoinRoomBtn = document.getElementById('guestJoinRoomButton');
const pathParts = window.location.pathname.split('/');
const roomPath = filterXSS(pathParts[pathParts.length - 1]);
presenterLoginBtn.onclick = (e) => {
window.location.href = '/login';
};
guestJoinRoomBtn.onclick = (e) => {
window.location.href = '/join/' + roomPath;
};