Add warning comments in APPLICATION_SERVER_URL pointing to demos

This commit is contained in:
pabloFuente 2022-09-21 15:28:01 +02:00
parent ccbf1dd400
commit 3efe5b8498
3 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,6 @@
<resources>
<!-- WARNING: this application_server_url is not secure and is only meant for a first quick test.
Anyone could access your video sessions. You should modify the application_server_url to a custom private one -->
<string name="application_server_url">https://demos.openvidu.io/</string>
<string name="app_name">OpenVidu Android Sample</string>
<string name="start_button">Join</string>
@ -13,4 +15,4 @@
<string name="accept_permissions_dialog">GIVE PERMISSIONS!</string>
<string name="cancel_dialog">CANCEL</string>
<string name="no_internet_connection">NO INTERNET CONNECTION, PLEASE CHECK YOUR CONNECTION</string>
</resources>
</resources>

View File

@ -64,10 +64,17 @@ export class AppComponent implements OnDestroy {
this.splashScreen.hide();
});
this.generateParticipantInfo();
// WARNING!! To make easier first steps with mobile devices, this code allows
// using the demos OpenVidu deployment when no custom deployment is provided
if (this.platform.is('hybrid') && this.APPLICATION_SERVER_URL === 'http://localhost:5000/') {
// To make easier first steps with mobile devices, use demos OpenVidu deployment when no custom deployment is provided
/**
* WARNING: this APPLICATION_SERVER_URL is not secure and is only meant for a first quick test.
* Anyone could access your video sessions. You should modify the APPLICATION_SERVER_URL to a custom private one.
*/
this.APPLICATION_SERVER_URL = 'https://demos.openvidu.io/';
}
}
@HostListener('window:beforeunload')

View File

@ -61,6 +61,10 @@ export class AppComponent implements OnDestroy {
// WARNING!! To make easier first steps with mobile devices, this code allows
// using the demos OpenVidu deployment when no custom deployment is provided
if (this.platform.is('hybrid') && this.APPLICATION_SERVER_URL === 'http://localhost:5000/') {
/**
* WARNING: this APPLICATION_SERVER_URL is not secure and is only meant for a first quick test.
* Anyone could access your video sessions. You should modify the APPLICATION_SERVER_URL to a custom private one.
*/
this.APPLICATION_SERVER_URL = 'https://demos.openvidu.io/';
}