From 02e3d471d909b4c091601c7404de158dab58130b Mon Sep 17 00:00:00 2001 From: Stavros Zavrakas Date: Fri, 15 Jun 2018 10:36:34 +0100 Subject: [PATCH 1/2] fix the hardcoded port --- .../layouts/layout-best-fit/layout-best-fit.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts index 79816afb..a048ce63 100644 --- a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts +++ b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts @@ -90,7 +90,8 @@ export class LayoutBestFitComponent implements OnInit, OnDestroy { this.updateLayout(changeFixedRatio); }); - const token = 'wss://' + location.hostname + ':4443?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; + const port = !!location.port ? (':' + location.port) : ''; + const token = 'wss://' + location.hostname + location.port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; this.session.connect(token) .catch(error => { console.error(error); From 26b954a1d9edd9b6a1f1c166cf890c021ee40f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Fuente=20P=C3=A9rez?= Date: Mon, 18 Jun 2018 10:16:08 +0200 Subject: [PATCH 2/2] Update layout-best-fit.component.ts --- .../layouts/layout-best-fit/layout-best-fit.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts index a048ce63..b07e457f 100644 --- a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts +++ b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts @@ -91,7 +91,7 @@ export class LayoutBestFitComponent implements OnInit, OnDestroy { }); const port = !!location.port ? (':' + location.port) : ''; - const token = 'wss://' + location.hostname + location.port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; + const token = 'wss://' + location.hostname + port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; this.session.connect(token) .catch(error => { console.error(error);