sintoniadocs
Using Sintonia

Audio and video calls

Join a LiveKit room using a separate end-to-end media key.

On this pageHow a call worksStart or joinDirect calls and invitationsCaller ringingChannel callsAdd people to an individual conversationSearch and start a groupChat during a callKeyboard, recent contacts and searchEmojis and stickersSignalingBandwidth: Simulcast and Adaptive StreamPresentation, focus and participantsNoise cancellationEncryptionLocal loopback and FirefoxNetwork requirementsIncoming ringtoneBack, minimize and input devicesPeople search with the mobile keyboardActive speakers and screen sharingFeedback without covering controlsCamera resolution and quality analysisInitial mobile cameraAndroid app switching

For scheduling, approved guests, delegation, invitations and ICS export, see Meetings and calendar.

Audio uses an audio-thread loop with a scheduled deadline, without waiting for autoplay before showing the incoming dialog. Firefox may require site permission and Enable ringtone. Discarded tabs, closed browsers and OS settings remain delivery limits.

The call button in a meeting's permanent conversation opens that meeting through the same admission and media room as the calendar and external link. See meeting entry points.

How a call works#

The Spring Boot backend coordinates permissions, participation, invitations and credentials. LiveKit is the SFU: each device joins the room to publish or receive audio, video and screen sharing over WebRTC. LiveKit signaling uses a secure WebSocket (WSS); media follows the path negotiated through ICE.

Sequence diagram#

This is a simplified direct-call flow. Participation and token issuance are grouped together for readability.

Person A / Sintonia backend / LiveKit (SFU) / Person B Prepare the media key; Person A → Sintonia backend: Start call and request access; Sintonia backend → Person A: Participation, JWT and ICE configuration; Person A → LiveKit (SFU): Connect to room over WSS using JWT; Person A → Sintonia backend: Invite participants; Sintonia backend → Person B: Notify incoming call invitation; Person B → Sintonia backend: Accept invitation and request access; Sintonia backend → Person B: Participation, JWT and ICE configuration; Prepare the media key; Person B → LiveKit (SFU): Connect to the same room over WSS; ICE negotiates the WebRTC path to LiveKit: direct or through a TURN relay; Person A → LiveKit (SFU): Publish encrypted audio, video and screen; LiveKit (SFU) → Person B: Forward received media; Person B → LiveKit (SFU): Publish encrypted audio and video; LiveKit (SFU) → Person A: Forward received media Person APerson ASintonia backendSintonia backendLiveKit (SFU)LiveKit (SFU)Person BPerson BPrepare the media keyStart call and requestaccessParticipation, JWT and ICEconfigurationConnect to room over WSS using JWTInvite participantsNotify incoming call invitationAccept invitation and request accessParticipation, JWT and ICE configurationPrepare the media keyConnect to the same roomover WSSICE negotiates the WebRTC path to LiveKit: direct or through a TURN relayPublish encrypted audio, video and screenForward received mediaPublish encrypted audio andvideoForward received media
On small screens, scroll horizontally. Open full-size diagram
View Mermaid source
mermaid
sequenceDiagram
    actor A as Person A
    participant API as Sintonia backend
    participant LK as LiveKit (SFU)
    actor B as Person B
    Note over A: Prepare the media key
    A->>API: Start call and request access
    API-->>A: Participation, JWT and ICE configuration
    A->>LK: Connect to room over WSS using JWT
    A->>API: Invite participants
    API-->>B: Notify incoming call invitation
    B->>API: Accept invitation and request access
    API-->>B: Participation, JWT and ICE configuration
    Note over B: Prepare the media key
    B->>LK: Connect to the same room over WSS
    Note over A,B: ICE negotiates the WebRTC path to LiveKit: direct or through a TURN relay
    A->>LK: Publish encrypted audio, video and screen
    LK-->>B: Forward received media
    B->>LK: Publish encrypted audio and video
    LK-->>A: Forward received media

Control, networking and protection#

  • Authorization: POST /channels/{id}/call/start records participation; POST /channels/{id}/call returns the LiveKit URL, a room-scoped JWT and, when configured, ICE/TURN credentials. These API paths use the /api prefix.
  • Invitation: a new direct/group call invites the other participants after the initiator connects. Events, polling and push notify recipients according to platform availability. Acceptance is acknowledged before preparing the conversation and joining. Invitations expire after 45 seconds.
  • Connectivity: ICE negotiates each client's path to the SFU. TURN relays traffic when required; an installation may force relay. Clients still use LiveKit when TURN is unnecessary.
  • Encryption: the client configures LiveKit's media encryptor with a key derived from the conversation key using HKDF. Direct/group conversations and private channels follow E2EE key protection. Public channels with server-managed keys have a different trust boundary: their content is accessible to the server. Meetings use a separate epoch key delivered to approved participants; see meetings.
  • Bandwidth: Simulcast publishes video layers; AdaptiveStream/Dynacast adapt subscriptions and publication to participant visibility and demand.
  • State: the app sends a heartbeat every 15 seconds and disconnects media if that validation is rejected. Voltar minimizes the UI while keeping the session mounted; Sair ends local participation.

Channel calls do not automatically ring every member: the user chooses whom to invite. External meeting guests additionally wait for admission approval. Recording is a separate flow with in-room notices; see local recording and worker recording.

Start or join#

Open a synchronized conversation and select Iniciar conexão or Call. Other authorized participants join through the same conversation. Camera and microphone start disabled; enable them explicitly and grant the operating-system permission.

Direct calls and invitations#

Starting a new direct or group-chat call invites the other participants. The recipient sees the caller and can accept or decline. Invitations last 45 seconds and disappear when the call ends. Joining an existing call does not ring everyone again. Ringing respects global/conversation pauses and Busy presence. Browser autoplay may require prior interaction; Ativar som retries from a user gesture. Continuous ringing and answering require the app to remain open. Browser Web Push can alert about invitations with the page closed, subject to OS/browser restrictions. Selecting Atender acknowledges the invitation before loading the conversation and synchronizing its keys. Getting on the phone... shows preparation; polling cannot ring the same invitation again. Hidden direct conversations can also receive calls. After a failure, Tentar novamente retries the acknowledged invitation instead of creating a new call. If already on another call, accepting explicitly ends the local participation there. A stale invitation cannot silently create another call. Microphone/camera remain off until explicitly enabled.

Caller ringing#

The caller hears an outgoing tone while invitations await an answer. It stops on acceptance/join, expiry/decline of all invitations or leaving the call. Global/conversation pauses and Busy mute it. Browser autoplay policy may require Ativar som.

Channel calls#

Joining a channel call is quiet by default. Use Chamar participantes to invite selected existing members. Eligible local channel creators/administrators can use Adicionar ao canal e chamar for workspace users not yet in the channel, with an explicit notice that they gain channel-history access.

Add people to an individual conversation#

Use Adicionar pessoas em novo chat from the conversation's people dialog or direct/group call toolbar. A new group includes the active existing participants and selected users, up to 100 people. It has a new ID and fresh key; messages, files and old secrets are not copied. The original conversation remains intact. Groups appear with direct conversations and are not automatically shared across workspaces/installations. During a call, the initiating device leaves its original room and starts the group call. Others receive invitations and must accept; nobody is transferred silently. If on the old call, accepting the new invitation ends that local participation first.

Search and start a group#

Choose Nova conversa (the bold white navigation action) in the sidebar header. Search by name or email and select several people before confirming. Selections remain visible as removable chips across searches. One recipient starts a direct conversation; several recipients enable Criar chat em grupo, with up to 99 invited people plus the author. Participant search is also available when inviting call participants, adding channel members or expanding into a new group. Call actions are grouped under Participantes according to permission and conversation type.

Chat during a call#

On wide screens the chat appears beside video. Call Chat toggles it; narrow screens switch between chat and video without ending the call or losing the draft. The panel reuses the normal conversation interface: text, files and media with thumbnails, threads, local search including replies, older-message loading, author deletion and undo/restore. It uses the call's channel/workspace, E2EE and corporate-custody policy. Closing the panel does not clear shared keys.

Enter sends; Shift+Enter inserts a newline, both in normal chat and calls. IME composition does not accidentally send a message. The send button remains available. People selectors initially show up to 20 contacts from recently active direct/group conversations in the workspace. Typing at least two characters starts server search after a 300 ms debounce. Pages contain up to 20 results with Carregar mais resultados; selections survive query changes. Channel membership and workspace/federation authorization are enforced on the server. Profile metadata is fetched by the required IDs rather than loading the full directory.

Emojis and stickers#

Emojis e figurinhas inserts an emoji at the cursor or adds a local Sintonia sticker to the draft. Create from an image accepts images decodable by the app/device, including JPEG and BMP, up to 20 MB/16 megapixels. Keep the whole image or move/resize an optional square crop. Output is PNG 512 × 512 with transparent padding when needed; animated images use the first frame. The final workspace upload limit still applies. Personal stickers belong to an encrypted account collection on the home installation and synchronize between authorized devices. Browse Recent, Favorites, packs and search. Long-press or right-click an item to favorite, rename, move to a pack or remove it; create new images with optional manual cropping. The star on a received sticker saves it as a favorite. Each collection allows 100 images and 20 MiB of ciphertext, with PNG images up to 2 MiB/512 × 512; identical images are deduplicated. Encrypted thumbnails are paginated in groups of 50; full images download on demand. The previous local collection is imported without deleting pending items before server confirmation. Network failures show pending synchronization. QR authorization shares the key automatically; the encrypted backup can recover it. Email-only account recovery without history starts a new collection because it cannot recover lost keys. Every send still creates an encrypted attachment for the destination conversation. See stickers. Imported images are encrypted attachments and appear inline; animation depends on device support. The included pack uses local vector artwork, with no external sticker catalog. Text, sticker identifiers and file keys are inside E2EE payloads, with the conversation's custody policy. Older clients can read the included stickers' alternate text.

Signaling#

Authenticated signaling validates membership, recipient and invitation expiry. Heartbeats run every 15 seconds, and a participant silent for 90 seconds no longer keeps the call active. Network-loss cleanup is eventual. WebSockets and polling target open clients. Backend revocation does not replace administrative removal of already connected media participants in LiveKit. POST /api/channels/{id}/call/start returns callId, participantId and created; optional callId requires the invited call. POST /api/channels/{id}/call/invite accepts callId and up to 20 userIds. GET /api/calls/invitations lists allowed pending invitations. POST /api/calls/invitations/{id}/respond accepts accepted/declined. POST /api/calls/{id}/heartbeat and /leave accept the caller's participantId. POST /api/channels/{id}/group creates a separate chat with additional userIds.

Bandwidth: Simulcast and Adaptive Stream#

Camera Simulcast explicitly includes 180p/360p lower layers plus the captured resolution, bounded by the user's camera quality choice. The SDK derives encoding from actual capture dimensions instead of forcing a 1080p bitrate. Codec/platform support determines available layers. Adaptive Stream requests layers for visible render dimensions; camera density is 1x, screen sharing up to 2x. Offscreen cached videos, minimized calls, narrow call chat and hidden/paused apps detach renderers while retaining room/audio/chat/local publishing. Without attached views the SDK pauses remote video, then resumes/recalculates when visible. Without local recording, app backgrounding also unsubscribes video directly without waiting for rendered frames; audio remains subscribed. Dynacast pauses unconsumed publishing layers. Switching is eventual; actual savings require real-client measurement.

Presentation, focus and participants#

Connection charts start hidden. Use Show connection details near the top of the call to open them; Hide connection details closes the panel. Detailed polling runs while it is open. Use Tela cheia on a shared screen. Quit full screen, browser Escape or Back restores the call layout; room/audio/chat drafts stay mounted. Web requests browser fullscreen, desktop uses native window fullscreen and mobile uses available immersive mode. If permission is refused, the presentation stays expanded within the app. Double-click/tap the person's image or use Focar câmera to spotlight that camera locally; Voltar à galeria restores the grid. Large galleries scroll vertically; the camera strip beside presentations/spotlights has a visible horizontal scrollbar, dragging and previous/next buttons. Offscreen video still uses Adaptive Stream. Click a call participant's name, message author's name or direct-chat heading to open Perfil, showing authorized photo, name, email and presence. Only that account is queried. Screen-sharing controls use vector artwork independent of icon fonts and wrap on narrow windows, including Firefox.

Noise cancellation#

Camera and microphone → Noise cancellation starts enabled. It requests local browser/OS microphone processing, echo cancellation and automatic gain. Changing it does not enable the microphone; it is reapplied on input changes. Effectiveness depends on the device/browser and optional constraints may be ignored. No external AI service receives the audio.

Encryption#

The client requires LiveKit end-to-end encryption and derives a media key separately from the message key. The backend issues a short-lived room-scoped access token. For private/DM/group E2EE, the media server does not receive the conversation media key through this flow. Managed public channels use server-controlled key material and are not E2EE against the operator; see public channel protection. Corporate custody does not record calls. There is no automatic call transcript or compliance recording.

Local loopback and Firefox#

The local Compose publishes only signaling (127.0.0.1:7880) and authenticated TURN over TCP (127.0.0.1:3478). TURN and LiveKit share a private Docker interface; direct media ports 7881/7882 are not published on the host. No LAN listener is enabled by the script.

Run scripts/start-local.sh to generate the local TURN shared secret once in .env, preserving existing credentials. The authorized call endpoint returns short-lived per-user TURN credentials and the relay policy. The shared secret stays on the server. Clients reach TURN over localhost TCP; TURN forwards media internally to LiveKit. E2EE remains between participants and the relay receives no content keys.

The backend settings are TURN_URLS, TURN_SHARED_SECRET and TURN_FORCE_RELAY. This Compose is for development on the same machine. Production requires reachable TURN/WSS infrastructure. Without configured TURN, remote deployments retain the SDK behavior. Local development forces relay to avoid the direct loopback path that failed in Firefox.

The app does not change browser preferences. The reported Firefox installation connected successfully with this relay, as confirmed by the user; validate other browsers and networks separately. Share only redacted ICE diagnostics, never full SDP or tokens.

Network requirements#

Clients must reach the LiveKit URL returned by the backend. Production requires WSS, valid certificates and suitable TURN/firewall configuration. Federated participants use the media configuration of the server hosting the channel. The development Compose configuration is not an Internet-ready media deployment. Real camera/microphone behavior, TURN and codecs must be validated on each distribution platform.

Incoming ringtone#

The incoming ring uses a simple two-pulse ring combining soft 440/480 Hz tones, without a melody. Browser/native players share the ring pattern. The rendered waveform has digital headroom and no clipping. Notification pauses, Busy, acceptance/decline and expiry still control ringing. OS volume and browser autoplay remain applicable. At the app repository root, python3 tool/build-ringtone.py renders the native WAV from assets/ringtone-pattern.json. Outgoing ringback remains separate.

Back, minimize and input devices#

Back and Minimize keep the same call session active and expose microphone, camera, restore and leave controls in the workspace footer. Closing/reloading the app/tab or signing out ends participation. Camera and microphone settings select available input sources without enabling a disabled source; use Refresh list after granting permission or plugging in a device.

People search with the mobile keyboard#

Direct/group creation and call participant selectors reserve room for a separately scrolling result list while the keyboard is open. Confirmation controls remain side by side. Two or more characters search the authorized directory without requiring earlier conversations. The search action confirms input and hides the keyboard while retaining query/selection. Predictive autocorrection is disabled for names/email addresses.

Active speakers and screen sharing#

Speaking participants have a green frame and a Falando label, driven by LiveKit voice activity. It works with the camera off and is separate from connection quality.

Select Compartilhar tela. Desktop browsers provide their own screen/window/tab consent picker; installed desktop apps offer a screen/window picker. Shared screens take the main area with camera tiles below. Stop through Parar compartilhamento, including the minimized call bar, or the browser/system control. Leaving releases capture. Microphone control remains independent and system audio is not captured. Sharing follows the call's encryption mode without automatic recording.

Desktop web requires HTTPS/localhost and browser/OS screen permission. Installed Windows/macOS/Linux use the SDK picker, with support depending on the OS/display portal. Android obtains MediaProjection consent before starting a visible foreground capture service. This iPhone/iPad build uses ReplayKit for the open Sintonia app only; sharing other apps requires a separately provisioned Broadcast Upload extension and App Group, not included here. Unsupported mobile browsers can receive sharing but cannot initiate it.

Feedback without covering controls#

Application feedback uses a docked strip that reserves space above content, including call chat. New feedback replaces earlier feedback and can be dismissed. It preserves undo actions without covering the composer/call controls or dialogs. Navigation and sign-out clear feedback from the previous screen. Message notifications remain available in the inbox.

Camera resolution and quality analysis#

Camera settings offer 360p economy, 720p HD (default), or 1080p Full HD for this call. Selecting does not turn the camera on. Device/browser/network capacity and LiveKit adaptation may reduce actual resolution. Switching while transmitting restarts capture with the new limit and attempts to restore the previous configuration on failure.

Three charts sample every two seconds and retain sixty seconds: server connection, outgoing audio and outgoing video. Green means good, yellow fair, red poor; text and bar heights also communicate the state. Gray means unavailable, including muted tracks or missing browser metrics. Participant labels show LiveKit connection quality.

Outgoing transport uses RTT, jitter and interval packet loss when available: yellow above 250 ms RTT, 30 ms jitter or 2% loss; red above 600 ms, 60 ms or 5%. Hover for RTT/jitter and video resolution/FPS. These describe transport to the server, not perceptual quality at every recipient. The charts do not record or activate media.

Initial mobile camera#

The first Android/iOS camera activation uses the front camera. It does not enable capture without your action and respects subsequent explicit selections.

Android app switching#

The updated APK starts a persistent foreground call service before media connection, adding granted microphone/camera service types when capture is enabled. Switching apps no longer ends the call or local recording. MediaProjection retains user consent for screen sharing; select Entire screen to share other apps. Call exit releases the notification/wake lock, and a stale call owner cannot stop a replacement call. Install the updated APK; web/backend deployment alone does not change installed Android code. Force-stop, system restrictions, revoked permission and network loss can still interrupt capture; iOS/browser limitations remain separate. See on-device recording.

Search channels, QR codes, uploads, security…

↑ ↓ navigate ↵ open result