Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

Bobine is offline-first video playout, member kiosk, coach console and club radio for gyms and studios. One machine on the local network drives the screens and the sound of the rooms: pre-recorded classes, a coach screen, a cinema mode, a radio and signage loops, scheduled or driven by hand. No account, no telemetry. It ships for Linux, Windows, macOS, Android and Android TV, with a command line, bobine, that does everything the interface does. License: AGPL-3.0.

How it is built

PartContent
backendPython, one Uvicorn process and SQLite; domain packages under backend/app (playback, radio, signage, scheduling, outputs, catalog, updates, inputs, network, storage)
frontendNext.js exported as static files and served by the backend; one folder per page under components/, shared helpers under lib/
command linebobine, a pure HTTP client declared as data under cli/specs/, standard library only
native componentsRust crates run as child processes speaking bounded line-delimited JSON: media (metadata, covers, video probe), devices (screens, audio, remotes and gamepads), projector (screen window)
Androida Kotlin shell around a WebView, with the backend embedded through Chaquopy
media toolsffmpeg and ffprobe, bundled per platform

Every route has its bobine command, or a recorded reason why not. Bounds and shared lists live in api/contract.py; errors read {code, message} with 404, 409 and 422; lists take limit and offset and return X-Total-Count. A route or command change regenerates the reference in docs/reference of the Bobine repository, copied to the website.

Outputs and screens

Three fixed, isolated outputs: Wired (cable), Network 1 (network) and Network 2 (network_2). Each has one active mode at a time: classes (kiosk), cinema, radio or signage; the coach screen exists on Wired only. A device is set once to /screen/?output=ID and follows the mode of its output.

Behaviors that must not break

AreaRule
Video positionfollows the server clock, never a screen report; playbackRate correction (plus or minus 5 percent) on mirror screens only, the primary screen stays at exactly 1.0; one seek beyond 2 s of drift, never periodic seeks
Soundon /radio, native audio without an AudioContext while the sound settings are neutral; a video sound goes through Web Audio only when its output sound is not neutral; one safety limiter with a soft ceiling
Schedulea class follows wall-clock time and is never restarted after a manual stop, a replacement, a cancellation or a manual playback
Browsersfeature detection, never the user agent; every stream route answers Range, If-Range, 416 and ETag; no /api route returns HTML; the original video is never modified
UpdatesStable compares versions, Beta and Canary compare commits; SHA-256 required; a scheduled update waits for the end of playback; no automatic rollback
ConfigurationJSON export and import per family, uid as identity, atomic apply, dry run by default, prune only on request
Networkport 1903, fallback 1904 to 1913; mDNS name bobine.local, then bobine-2 to bobine-9; every action goes through REST, never WebSocket alone
Privacyzero telemetry, enforced by a test

Trust model

Bobine trusts the local network and has no accounts or passwords. Clients outside the private networks are refused, even behind a proxy, unless allowed by BOBINE_ALLOWED_NETWORKS; untrusted hosts are refused, so DNS rebinding reads and writes nothing; writes and WebSockets are accepted from the same origin only. Access from outside the local network is outside the model and would require an authentication decided by the maintainer. Details: reference/threat-model.md.

Channels

Stable is a tag VX.Y.Z; Beta and Canary are rolling tags rebuilt from main. Every code push to main publishes a Canary; a documentation-only commit builds nothing. VERSION in the Bobine repository is the single source of the version.