diff --git a/application-client/openvidu-electron/src/app.js b/application-client/openvidu-electron/src/app.js
index 88d5378b..8ae5e89c 100644
--- a/application-client/openvidu-electron/src/app.js
+++ b/application-client/openvidu-electron/src/app.js
@@ -7,6 +7,10 @@ const LIVEKIT_URL = "ws://localhost:7880/";
var room;
async function joinRoom() {
+ // Disable 'Join' button
+ document.getElementById("join-button").disabled = true;
+ document.getElementById("join-button").innerText = "Joining...";
+
// Initialize a new Room object
room = new Room();
@@ -77,6 +81,10 @@ async function leaveRoom() {
// Back to 'Join room' page
document.getElementById("join").hidden = false;
document.getElementById("room").hidden = true;
+
+ // Enable 'Join' button
+ document.getElementById("join-button").disabled = false;
+ document.getElementById("join-button").innerText = "Join!";
}
window.onbeforeunload = () => {
diff --git a/application-client/openvidu-electron/src/index.html b/application-client/openvidu-electron/src/index.html
index 71b634f1..52a2e996 100644
--- a/application-client/openvidu-electron/src/index.html
+++ b/application-client/openvidu-electron/src/index.html
@@ -65,7 +65,7 @@
-
+
diff --git a/application-client/openvidu-js/src/app.js b/application-client/openvidu-js/src/app.js
index 5bd75c34..36a8cff8 100644
--- a/application-client/openvidu-js/src/app.js
+++ b/application-client/openvidu-js/src/app.js
@@ -28,6 +28,10 @@ function configureUrls() {
}
async function joinRoom() {
+ // Disable 'Join' button
+ document.getElementById("join-button").disabled = true;
+ document.getElementById("join-button").innerText = "Joining...";
+
// Initialize a new Room object
room = new LivekitClient.Room();
@@ -98,6 +102,10 @@ async function leaveRoom() {
// Back to 'Join room' page
document.getElementById("join").hidden = false;
document.getElementById("room").hidden = true;
+
+ // Enable 'Join' button
+ document.getElementById("join-button").disabled = false;
+ document.getElementById("join-button").innerText = "Join!";
}
window.onbeforeunload = () => {
diff --git a/application-client/openvidu-js/src/index.html b/application-client/openvidu-js/src/index.html
index 6e3fdac0..58f367bf 100644
--- a/application-client/openvidu-js/src/index.html
+++ b/application-client/openvidu-js/src/index.html
@@ -67,7 +67,7 @@
-
+