From 2493d3c1c841d8fed33707d81c994b498720ea01 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 5 Jun 2024 17:38:23 +0200 Subject: [PATCH] openvidu-testapp: update test-scenarios.component.ts --- .../test-scenarios/test-scenarios.component.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 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 ecc42c26dd..ad170474a5 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 @@ -65,10 +65,10 @@ export class TestScenariosComponent implements OnInit, OnDestroy { manualTurnConf: RTCIceServer = { urls: [] }; publisherProperties: PublisherProperties = { - audioSource: false, + audioSource: undefined, videoSource: undefined, - frameRate: 2, - resolution: '320x240', + frameRate: 1, + resolution: '80x60', mirror: true, publishAudio: true, publishVideo: true @@ -208,6 +208,16 @@ export class TestScenariosComponent implements OnInit, OnDestroy { this.testFeedService.pushNewEvent({ user: 0, event }); }); + session.on('reconnecting', () => { + const event = { cancelable: false, target: session, type: 'reconnecting', hasBeenPrevented: false, isDefaultPrevented: undefined, preventDefault: undefined, callDefaultBehavior: undefined }; + this.testFeedService.pushNewEvent({ user: 0, event }); + }); + + session.on('reconnected', () => { + const event = { cancelable: false, target: session, type: 'reconnected', hasBeenPrevented: false, isDefaultPrevented: undefined, preventDefault: undefined, callDefaultBehavior: undefined }; + this.testFeedService.pushNewEvent({ user: 0, event }); + }); + if (user.subscribeTo) { session.on('streamCreated', (event: StreamEvent) => {