Malformed constraints object

I’m trying to implement an example of meetings in Angular

connection = null;
room = null;

options = {
    serviceUrl: 'https://beta.meet.jit.si/http-bind',
  hosts: {
    domain: 'beta.meet.jit.si',
    muc: 'conference.beta.meet.jit.si'
  },
  resolution: 720,
  constraints: {
    video: {
      aspectRatio: 16 / 9,
      height: {
        ideal: 720,
        max: 720,
        min: 240
      }
    }
  }
};

ngOnInit(): void{
  this.initJitsi();
}

initJitsi(): void {
  JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);

  JitsiMeetJS.init({
    disableAudioLevels: true,
  });
  this.connection = new JitsiMeetJS.JitsiConnection(null, null, this.options);
  this.connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,
    this.onConnectionSuccess.bind(this));
  this.connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_FAILED,
    this.onConnectionFailed.bind(this));
  this.connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,
    this.onDisconnect.bind(this));
  this.connection.connect();
}

onConnectionSuccess(): void {
  console.log('CONNECTION_ESTABLISHED');

  this.room = this.connection.initJitsiConference('evp-text-conference', {
    openBridgeChannel: true,
  });
  this.room.on(JitsiMeetJS.events.conference.TRACK_ADDED, this.onTrackAdded.bind(this));
  this.room.on(JitsiMeetJS.events.conference.TRACK_REMOVED, this.onTrackRemoved.bind(this));
  this.room.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED, this.onConferenceJoined.bind(this));
  this.room.on(JitsiMeetJS.events.conference.USER_JOINED, this.onUserJoined.bind(this));
  this.room.on(JitsiMeetJS.events.conference.USER_LEFT, this.onUserLeft.bind(this));
  this.room.on(JitsiMeetJS.events.conference.TRACK_MUTE_CHANGED, this.onTrackMuted.bind(this));
  this.room.on(JitsiMeetJS.events.conference.TRACK_AUDIO_LEVEL_CHANGED, this.onTrackAudioLevelChange.bind(this));
  this.room.join();
 }

The first connection is successful but when I try to log in as the second user an error appears

image

Someone knows what’s the problem?

Thanks!

Can you try removing the aspectRatio from the constraints object and check (under options object)? I’m not sure but aspectRatio was never a part of video constraints.
Thank you

Yes. The result is the same

Forget it.
Just don’t use Jitsi with other WEBRTC libs. I had a conflict with Agora