+
Join a Video Room
@@ -45,22 +84,18 @@
>
-
+
Join!
-
-
-
-
-
-
} @else {
diff --git a/application-client/openvidu-ionic/src/app/app.component.scss b/application-client/openvidu-ionic/src/app/app.component.scss
index bfa8f74e..2f36b419 100644
--- a/application-client/openvidu-ionic/src/app/app.component.scss
+++ b/application-client/openvidu-ionic/src/app/app.component.scss
@@ -2,14 +2,14 @@
font-weight: bold;
}
-#join-dialog h2 {
+.form h2 {
font-weight: bold;
text-align: center;
margin-bottom: 10px;
font-size: 2em;
}
-#join-button {
+.form-button {
margin-top: 20px;
}
diff --git a/application-client/openvidu-ionic/src/app/app.component.ts b/application-client/openvidu-ionic/src/app/app.component.ts
index 6670cc10..997cf6d4 100644
--- a/application-client/openvidu-ionic/src/app/app.component.ts
+++ b/application-client/openvidu-ionic/src/app/app.component.ts
@@ -2,13 +2,10 @@ import { HttpClient } from '@angular/common/http';
import { Component, OnDestroy, signal } from '@angular/core';
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import {
- AlertController,
IonApp,
IonButton,
IonButtons,
IonContent,
- IonFab,
- IonFabButton,
IonFooter,
IonHeader,
IonIcon,
@@ -39,7 +36,8 @@ type TrackInfo = {
};
// For local development launching app in web browser, leave these variables empty
-// For production or when launching app in device, configure them with correct URLs
+// For production or when launching app in a mobile device, configure them with correct URLs
+// If you leave them empty when launching app in a mobile device, the user will be prompted to enter the URLs
var APPLICATION_SERVER_URL = '';
var LIVEKIT_URL = '';
@@ -58,8 +56,6 @@ var LIVEKIT_URL = '';
IonTitle,
IonButtons,
IonButton,
- IonFab,
- IonFabButton,
IonIcon,
IonContent,
IonList,
@@ -74,11 +70,18 @@ export class AppComponent implements OnDestroy {
participantName: new FormControl('Participant' + Math.floor(Math.random() * 100), Validators.required),
});
+ urlsForm = new FormGroup({
+ serverUrl: new FormControl('', Validators.required),
+ livekitUrl: new FormControl('', Validators.required),
+ });
+
room = signal(undefined);
localTrack = signal(undefined);
remoteTracksMap = signal