YMT Meet × Fora Soft

A browser video platform for therapy and psychiatry visits, one to one or in groups

Published: Nov 24, 2026
YBT Meet group session in the browser and a clinician on a phone
Encrypted calls in Safari and Chrome on Android, each participant on their own phone
Waiting room where the clinician admits patients who join from a link
YMT Meet, now sold as YBT Meet inside OneYBT, is a video platform for outpatient behavioral health: therapy, psychiatry and medication management, one to one or in groups. The founder built the first version with AI coding tools, and it already had real users. We audited the code, fixed the call bugs we reproduced in live testing, and prepared a self-hosted video server setup.
YBT Meet includes a waiting room, chat and optional transcription, and patient visits are never video recorded. The founder's next goal was to grow to about 2,500 meetings a day, and that needed stable calls.
Clinician video visit with chat and optional transcription, end-to-end encrypted
The system works like this: clinicians and patients meet in the browser, the video ran through LiveKit Cloud, a hosted video server, and each meeting can be encrypted end to end on the participants' devices.
Call path: browser, LiveKit Cloud and end-to-end encryption on participants' devices
The hardest part of the project was that most call bugs only showed up on real devices with several people in a call, so reading the code with AI tools was not enough to find them.
Waiting room where a clinician admits patients, and a patient joining from a link on a phone

Who uses the platform

  • Clinicians (therapists and psychiatrists) hold video visits with their patients and let them in from the waiting room.
  • Patients join a meeting from a link in a desktop or mobile browser.

A meeting is one video visit; a call is the live video and audio session inside it, and everyone in a call is a participant.

Highlights

  • A code audit that showed the founder what was solid, what was risky and what to fix first.
  • Bugs reproduced with real people on real phones and in Safari, then fixed and checked by hand.
  • Patients and clinicians in Safari are seen by everyone in an encrypted call.
  • Calls hold when someone changes camera or microphone before joining or when video tiles reorder as people join.
  • Lighter calls on phones and computers, and clean screen sharing.
  • A self-hosted LiveKit setup for the move off LiveKit Cloud.
Group session with four participants on a stable encrypted call
Code audit summary: 13 documents with root causes, fixes and a prioritized backlog

An audit of a product built with AI tools

Before we changed any code, we did a quick review and told the founder what was good and what was risky, so he got a plan instead of another round of patches.

On the good side, the code was written in TypeScript and already had Safari-specific handling and end-to-end encryption. The main risk was in the call logic: it tracked many states at once, so two events arriving at almost the same time could leave a call in a broken state.

We recommended eventually rewriting the call flow around a clear model of its states instead of patching it with more unreviewed AI edits. We also estimated that 2,500 meetings a day was achievable once calls were stable and new servers could be added automatically as load grew.

At the end of the project, we handed over the full audit in 13 documents. The documents give the root cause of each problem, the evidence, and either the fix we made or the recommended next step. The audit closes with a prioritized backlog of the next stability and performance work:

  • video encoder tuning;
  • further hardening of microphone recovery;
  • retries when another app holds the camera or microphone;
  • a remaining timing issue in call state, separate from the Safari fix;
  • making the camera code safe from acting on outdated state.

Testing on real devices with real people

The hardest bugs only appeared with several people on different devices, so we tested the way his users call.

We set up a separate testing environment and held live test calls with up to four people from our team at once, on phones, in Safari on macOS and iOS, and on different networks. This is how we found the Safari black screen, the "screen inside a screen" effect during screen sharing, the crash when video tiles were reordered, and focus jumping between participants on mobile.

We used AI tools to help write the fixes, and an engineer read every change line by line and checked it against how LiveKit and WebRTC behave. In areas like Safari encryption timing, code that looks right can still be wrong, and this review helps keep a fix from breaking something else. The fixes went to the founder as code changes for him to review and accept.

Live test call with four people on Safari for macOS and on phones
Encrypted call in Safari: a black screen before the fix and live video after it

Encrypted calls in Safari

Patients and clinicians using Safari on a Mac or iPhone can now join an encrypted meeting and be seen by everyone else.

With encryption on, the app has to restart a Safari user's video the first time it is sent to the call. After that restart, the user's own preview looked fine, but everyone else saw a black screen. We changed how the app restarts the video so it reaches everyone. We also made the app ignore the brief "camera off" signal while the restart is in progress, so other participants see a clean handoff instead of a flicker.

We also fixed a Safari freeze when a participant turned off background blur.

Calls that start and stay up

We fixed what kept calls from starting and staying up:

  • the app crashed when a participant changed camera or microphone on the screen before joining;
  • the app crashed when video tiles reordered as someone joined or started sharing their screen;
  • quick switching between audio devices before joining left the microphone disconnected;
  • participants heard echo from an audio feedback loop; we fixed it and also hardened the picture-in-picture window against future feedback;
  • the app did not reliably recover when a camera or microphone dropped out;
  • on mobile, focus jumped between participants instead of staying on the chosen one.
Pre-join screen with camera and microphone selection before joining a meeting
Picture-in-picture limited to 30 fps and simulcast qualities for lighter calls on phones

Less load on phones and computers

On a phone, every frame the app draws for nothing costs battery and heats the device.

We tuned simulcast, the way LiveKit sends the same video in several qualities so each participant gets the one their connection can handle, to stop it from overloading the processor. The picture-in-picture window used to redraw at the screen's refresh rate, up to 120 frames a second on some phones. We limited it to 30 frames a second, the rate of the video stream the window actually shows.

Screen sharing and interface fixes

We fixed small visual issues along with the crashes, so the product looks finished to clinicians and patients.

  • Sharing the screen in fullscreen no longer creates an endless "screen inside a screen" picture.
  • The background no longer flashes when a participant joins, and the loading background displays correctly when joining a meeting.
  • "Mirror my video" updates right away, and camera mirroring is correct.
  • The "Copy Link" button stays visible during screen sharing.
  • The speaker indicator is no longer cut off, and button hover text and the 404 page are readable.
Screen sharing in a group session without the screen-inside-a-screen effect
Self-hosted LiveKit setup: Docker image, GitLab CI, Traefik, Let's Encrypt and TURN server

Preparing the move off LiveKit Cloud

The founder decided to run video on his own servers instead of LiveKit Cloud, and we prepared the ground for that move.

We built a self-hosted LiveKit setup: a Docker image, a GitLab CI pipeline for deployment, Traefik with automatic Let's Encrypt certificates, LiveKit's built-in TURN server for users behind strict firewalls, and deployment documentation. We also made the code changes the app needed to work with its own server instead of the cloud one. This setup is built for a single server, and its production launch on the founder's own cloud account is the next step. Adding servers automatically as load grows, which our review named as the condition for 2,500 meetings a day, was left for the next stage and was not part of our work.

Technical Implementation

🌐 Platform
Web (desktop and mobile browsers)
💻 Frontend
TypeScript, React, Next.js
☁️ Backend
Supabase, Supabase Edge Functions
🎥 Video
LiveKit, WebRTC, TURN
🔒 Security
End-to-end encryption
🛠 Infrastructure
Docker, GitLab CI, Traefik, Let's Encrypt
YMT Meet: code audit, call stability, self-hosted LiveKit