+
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..4504ca51 100644
--- a/application-client/openvidu-ionic/src/app/app.component.ts
+++ b/application-client/openvidu-ionic/src/app/app.component.ts
@@ -39,7 +39,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 = '';
@@ -74,10 +75,17 @@ 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