pkg:clod/com.clodhub/video-calls 0.13.0 Video and sound between the people in a room, on the web, Apple devices and Android, through a LiveKit video service. Lets the people using an application see and hear each other while they use it, the way friends around a real card table would. Each shared activity (a game table, a room) gets its own video room on a LiveKit video service. The application's server hands each person a pass for their table's room; their browser, iPhone, iPad, Mac, Apple TV or Android app joins with it, shows the others' video beside the activity and plays their sound. It looks after the parts that are easy to get wrong: - A person who is only watching can see and hear but not send video or sound. - A shared screen (a television showing the table, see display-mode) never gets a pass and turns the camera and microphone off at once. - A refused camera leaves the person in the room with sound only. - Muting the microphone, turning the camera off and turning the speaker off are remembered when the person comes back. - The application can pause the call after five idle minutes and resume it with the same pass. Passes last six hours and are signed on the server with the video service's secret, which never reaches a device. Without a video service configured, nobody gets a pass and the rest of the application works as before. Examples Five friends play from five homes. Each sees the others' faces in small tiles round the table and hears them talk. One joins only to watch: they see and hear everyone, but their own camera never turns on. The table is also on the living-room television: it shows the cards, not the video, and its camera stays off. A player whose laptop refuses the camera still talks and listens. A player who mutes, leaves for a drink and returns is still muted. Package URL: pkg:clod/com.clodhub/video-calls@0.13.0 Class: Video calls (pkg:clod/com.clodhub/video-calls-class@1.1.0): Video and voice for the people in a room. Any component of this class can fill a recipe slot that asks for it. Category communication/video; https://clodhub.com/classes/video-calls-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Fvideo-calls-class Provides (1) - media-session (com.clodhub/media-session 1.0.0): Video calls through LiveKit. Server (server/video.ts, WebCrypto only, tagged server): grants and room listing. Browser (web/video.ts, class Video over livekit-client 2.23.0, tagged web). Apple (@MainActor final class VideoSession over LiveKit 2.19.0, tagged swift) and Android (class com.clodhub.video.VideoSession over livekit-android 2.29.0, tagged kotlin). Browser: the constructor listens for modeEvent; publish the initial display mode before connecting; a false canCapture on that event disconnects and forgets the grant; generation checks reject stale completions. Apple: call on the main actor; the caller disconnects on display entry. Android: call from the main thread; the caller calls forget on display entry or room leave. Server: the authenticated recipe supplies participant identity and the room prefix, uses publish false for spectators and issues no grant for a display; room routes enforce authentication and privacy. Native dependency versions and locks are in tests/native/dependencies.json; the verification helpers clod's runner calls are in interfaces/media-session-verification.json. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Fmedia-session Requires (1) - video-calls-configuration (com.clodhub/video-calls-configuration 1.0.0, optional): What the application supplies to video-calls: the collected settings and resolved secrets that make the server environment, the room prefix and participant passed to videoGrant, and the browser Video options. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Fvideo-calls-configuration Settings (4) The installer collects four settings: - `enabled`: whether the application offers video, true or false (default true); `false` means no passes are issued. - `serviceUrl`: the address of the LiveKit video service, an http or https address (optional, no default), for example `https://my-project.livekit.cloud`. Devices connect to it as `wss://` (or `ws://` for http). Leave it empty to add it later; until then there is no video. - `keyReference` and `secretReference`: secret references (optional), the names under which the LiveKit API key and API secret are kept in the deployment's secret store, written as letters, digits and underscores starting with a letter. These are names only, never the key or secret themselves. The server needs all three of the address, the key and the secret; if any is missing there is no video. The deployment turns the settings and the two secrets into `LIVEKIT_URL`, `LIVEKIT_API_KEY` and `LIVEKIT_API_SECRET` (the environment the server reads) with `videoEnvironment(settings, secrets)`, or sets those three variables directly. The application also supplies, in code, the room name prefix (the same one its rooms use, including the separator, for example `ourpoker-`), who each person is and whether they may send video, and on the web a function saying whether this device may capture (false on a shared screen), whether sound is on, and display-mode's event name. - enabled: boolean; optional, default true - serviceUrl: string (address); optional, no default - keyReference: string (identifier); optional, no default, a secret reference - secretReference: string (identifier); optional, no default, a secret reference Depends on components: none How to use in a recipe A recipe uses it through a slot of class Video calls (pkg:clod/com.clodhub/video-calls-class 1.1.0), naming pkg:clod/com.clodhub/video-calls as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (media-session) to the slots that use it. What it can use (video-calls-configuration) may stay unconnected. The recipe sets enabled, serviceUrl, keyReference and secretReference; any it leaves out takes its default. - as a slot in recipe.json components: {"id":"video-calls","class":{"name":"pkg:clod/com.clodhub/video-calls-class","version":"1.1.0","digest":"521b4b9d7ccca52721aebcd925d7ef9270c276e6ff496743e9a6d17f0d55f3d0"},"preferred":{"name":"pkg:clod/com.clodhub/video-calls","version":"0.13.0"}} - in place of another component of the class: clod fetch video-calls@0.13.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=video-calls@0.13.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot video-calls) For developers: how an application uses it On the server, when a person asks to join their table's video: ```ts import { videoGrant } from "./components/video-calls/server/index"; const grant = await videoGrant(env, tableId, player.id, player.name, Date.now(), !player.spectator, "ourpoker-"); // null when video is not configured; otherwise { url, token, room } ``` Never issue a pass to a shared screen. In the browser, create one `Video` with a function to call when its state changes and `{ canCapture, soundOn, modeEvent }`, then `connect(grant.url, grant.token, grant.room)`. Use `setMic`, `setCam` and `setSpeaker` for the person's buttons, `hold(true)` while they step away, `armIdle()` to pause after five idle minutes and `resume()` to come back, and `close()` when leaving. `monitor` and `cell` give the video tile to place on screen. Apple and Android use `VideoSession` the same way; when a device becomes a shared screen, call its disconnect. `listRooms` lists the application's rooms on the video service and who is in each. `examples/consumer.ts` is a complete example. Accounts and services A LiveKit video service and its API key and secret, supplied by the application's owner. LiveKit Cloud's free Build plan allows 100 people connected at once and 5,000 participant minutes a month, with no card; the paid Ship plan (from $50 a month) allows 1,000. The open-source LiveKit server can also be run on your own hardware. Each device asks the person for camera and microphone permission. How it is checked The required checks run without a video service or camera: - `node --test tests/video.test.mjs`: passes carry the right person, room and six-hour lifetime with a valid signature, a watcher cannot send, missing or disabled settings give no pass, room listing keeps to the application's prefix, and the browser `Video` keeps preferences through hold, sound changes, idle pause and cleanup, never captures after a switch to a shared screen, and stays in the room when the camera is refused. - `npm run typecheck`: the browser and server code type-check. - `node --test tests/provider.test.mjs`: the live-service check behaves correctly against a stand-in service, including cleaning up only the rooms it created and exposing no secret in its errors. - `node --test tests/browser-process.test.mjs`: the headless browser the media checks start is confined to its own profile and is always stopped. - The Python checks of the Apple result reader, the native check runner and the locked Android dependency list. The platform checks build the Apple app for the iPhone, Apple TV and Mac simulators and the Android test app, and run their media tests (they need Xcode or the Android tools). The deployed check, `provider-media`, joins a real LiveKit service with test participants; it needs the owner's service and keys. Updates Updates replace the component's files. Each person's microphone, camera and speaker choices live in the application's storage and are not deleted on removal; neither are the rooms on the video service, which LiveKit closes when they are empty. Tags: calls, communication, video Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/video-calls release v0.13.0; digest sha256:9597a4ac65b9bac4b06f0517505fa79567bb5cbe714e457c0bd3409fe475c3b0 Release: features Line 0.13: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/video-calls/0.13.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/video-calls/0.13.0 Bundle download: GET https://clodhub.com/api/components/video-calls/0.13.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/video-calls-class@1.1.0 521b4b9d7ccca52721aebcd925d7ef9270c276e6ff496743e9a6d17f0d55f3d0 com.clodhub/media-session 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, server server/index.ts, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: shared Platforms: android, ios, macos, server, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: none Styles: scope none; 0 namespaces; 0 conflicts Licence: Apache-2.0; 237 upstream sources, 193 exact dependencies, 362 files (listed on the details page) Suitable for jobs: video profile free: cost free; load concurrentPeople 100; regions any; compliance none; LiveKit Cloud Build profile paid: cost paid; load concurrentPeople 1000; regions any; compliance none; LiveKit Cloud Ship profile scale: cost paid; load concurrentPeople 5000; regions any; compliance none; LiveKit Cloud Scale Notes: Local checks need no account and contact no provider. Deployment needs LiveKit credentials supplied by reference. Limits come only from the two LiveKit pages named in the profile notes; per-day request and stored-data limits do not apply to media and are omitted. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/video-calls/issues; updates https://github.com/clodhub/video-calls/releases (manual) What you download video-calls-0.13.0.tar, from release v0.13.0 of clodhub/video-calls: 362 files - Documents and manifests (12): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.json, ... - Source code (19): android/ (1), apple/ (1), server/ (2), verification/ (13), web/ (2) - Tests (32): apple/ (1), browser-process.test.mjs, fixtures/ (5), native/ (19), provider.test.mjs, test_apple_generation.py, ... - Interface documents (3): media-session-verification.json, media-session.json, required-video-calls-configuration.json - Class files: the class's interfaces and shared checks (3): video-calls-class/ (3) - Examples (1): consumer.ts - Diagrams (5): definition.json, examples/ (1), output/ (3) - Scripts (6): capture-apple-schemas.py, check-android-locks.py, check-android.py, check-apple.py, platform-check.mjs, platform-check.py - Licence notices of upstream code (281): gradle-wrapper/ (1), maven/ (221), npm/ (47), swift/ (12) Installing copies 19 of them into the application under components/video-calls/: android 1, apple 1, server 2, verification 13, web 2 Not included: the components that provide what it requires (com.clodhub/video-calls-configuration), each a separate download; the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.13.0 features (2026-11-26T11:36:03.831Z) sha256:9597a4ac65b9bac4b06f0517505fa79567bb5cbe714e457c0bd3409fe475c3b0 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/video-calls/details.txt?version=0.13.0 Page: https://clodhub.com/components/video-calls; JSON: https://clodhub.com/api/components/video-calls/0.13.0; connections diagram: https://clodhub.com/api/components/video-calls/0.13.0/connections.svg Copyright Level N Ltd 2026