Skip to content

Commit

Permalink
openvidu-testapp: update test-scenarios.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Jun 5, 2024
1 parent fdbd1bd commit 2493d3c
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) => {

Expand Down

0 comments on commit 2493d3c

Please sign in to comment.