From 683511ba2768298cadb5a160413556098ef57f3d Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 2 Oct 2020 18:12:25 +0200 Subject: [PATCH] openvidu-testapp: new REST API paths --- .../components/test-scenarios/test-scenarios.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openvidu-testapp/src/app/components/test-scenarios/test-scenarios.component.ts b/openvidu-testapp/src/app/components/test-scenarios/test-scenarios.component.ts index 62b48932..8de48df9 100644 --- a/openvidu-testapp/src/app/components/test-scenarios/test-scenarios.component.ts +++ b/openvidu-testapp/src/app/components/test-scenarios/test-scenarios.component.ts @@ -84,6 +84,8 @@ export class TestScenariosComponent implements OnInit, OnDestroy { textAreaValue = ''; isFocusedOnReport = false; + private API_PATH = 'openvidu/api'; + constructor( private openviduParamsService: OpenviduParamsService, private testFeedService: TestFeedService, @@ -368,7 +370,7 @@ export class TestScenariosComponent implements OnInit, OnDestroy { private updateRemoteStreamsInfo() { let headers = new HttpHeaders(); headers = headers.append('Authorization', 'Basic ' + btoa('OPENVIDUAPP:' + this.openviduSecret)); - this.http.get(this.openviduUrl + 'api/sessions/' + this.fixedSessionId + '?webRtcStats=true', { headers }).subscribe( + this.http.get(this.openviduUrl + this.API_PATH + '/sessions/' + this.fixedSessionId + '?webRtcStats=true', { headers }).subscribe( sessionInfo => { this.report.streamsOut.content.forEach(report => { @@ -445,7 +447,7 @@ export class TestScenariosComponent implements OnInit, OnDestroy { /*addReportForStreamConcurrent(event: StreamManagerWrapper) { let headers = new HttpHeaders(); headers = headers.append('Authorization', 'Basic ' + btoa('OPENVIDUAPP:' + this.openviduSecret)); - this.http.get(this.openviduUrl + 'api/sessions/' + this.fixedSessionId + '?webRtcStats=true', { headers }).subscribe( + this.http.get(this.openviduUrl + this.API_PATH + '/sessions/' + this.fixedSessionId + '?webRtcStats=true', { headers }).subscribe( sessionInfo => { event.streamManager.stream.getSelectedIceCandidate()