async joinMeeting()

in src/room/MeetingManager.tsx [76:90]


  async joinMeeting(meetingId: string, name: string): Promise<any> {
    const url = `${BASE_URL}join?title=${encodeURIComponent(
      meetingId
    )}&name=${encodeURIComponent(name)}`;
    const res = await fetch(url, { method: "POST" });
    const data = await res.json();
    this.title = meetingId;
    await this.initializeMeetingSession(
      new MeetingSessionConfiguration(
        data.JoinInfo.Meeting,
        data.JoinInfo.Attendee
      )
    );
    this.audioVideo.start();
  }