Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ MEDIAMTX_RTSP_BASE_URL=rtsp://mediamtx:8554
# fleet: RTSP base the workers read from (private address of MediaMTX) and the capability workers must advertise
# (FFFLEET_PROBE=mediamtx=<host>:8554 on the worker gives net:mediamtx). Empty = any worker.
# MEDIAMTX_RTSP_FLEET_BASE_URL=
# MEDIAMTX_RTMP_FLEET_BASE_URL= # same for the RTMP address output steps publish to
# MEDIAMTX_FLEET_REQUIRES=net:mediamtx
# RTMP base URL — where the processing ffmpeg pushes its single output back into MediaMTX.
# MediaMTX then fans out via runOnPublish instead of the ffmpeg tee muxer.
Expand Down
2 changes: 2 additions & 0 deletions docs/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ Used when `RADIO_HLS_SOURCE=mediamtx` or when MediaMTX manages RTMP paths.
| `MEDIAMTX_HOOK_SECRET` | _(unset)_ | Shared secret for `POST /internal/mediamtx/path` (header `x-lcyt-hook-secret`). The route is closed while empty. Keep `/internal` off the public proxy |
| `MEDIAMTX_FANOUT_POLL_MS` | `0` | Runner mode: reconcile poll against the MediaMTX API (0 = 2 s without a hook secret, 30 s with one) |
| `MEDIAMTX_RTSP_FLEET_BASE_URL` | _(unset)_ | RTSP address fleet workers read from when they are on another host (private address of MediaMTX); empty = `MEDIAMTX_RTSP_BASE_URL` |
| `MEDIAMTX_RTMP_FLEET_BASE_URL` | _(unset)_ | RTMP address fleet output steps publish to when they run on another host (private address of MediaMTX); empty = `MEDIAMTX_RTMP_BASE_URL` |
| `MAX_GROUP_MEMBERS` | `4` | Most outputs one lock group may render in the same ffmpeg (each is its own x264 encode) |
| `MEDIAMTX_FLEET_REQUIRES` | _(unset)_ | Capabilities fan-out jobs require, e.g. `net:mediamtx` (worker started with `FFFLEET_PROBE=mediamtx=<host>:8554`) |

`runner` mode is new (2026-10-13) and has not been run against a real MediaMTX or fleet; `hook` stays the default until it has. Plan: `docs/plans/plan_mediamtx_fanout_fleet.md`.
Expand Down
1 change: 1 addition & 0 deletions docs/PLANS.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Where an implemented plan has known unbuilt parts (deferred phases, optional add
| [plan_ingest_feeds.md](plans/plan_ingest_feeds.md) | Ingest Feeds — Arbitrary Named Ingestion, Egress, and Mixing | **Implemented.** Generalizes RTMP ingestion from the fixed 'one Video, one DSK' model to arbitrary named, independently-relayable feeds (a new prod_cameras control_type: 'rtmp'), with egress able to select any of them (source_feed_id since plan_feeds_devices.md PR 7) and no cap on target count. Supersedes the earlier, narrower plan_monitors.md. Admin-configurable relay quota and a real lcyt-mixer live Preview bus are explicit non-goals/future work. |
| [plan_feeds_devices.md](plans/plan_feeds_devices.md) | Feeds and Devices | **Implemented (PRs 1-9 merged).** Splits the Setup Hub's Ingestion card into Feeds (new `prod_feeds` table: generic/camera/dsk kinds, free label, optional device link) and Devices (cameras, mixers, encoders). Replaces storing named feeds as `control_type: 'rtmp'` cameras; migrates existing ones without changing any key. |
| [plan_egress_outputs.md](plans/plan_egress_outputs.md) | Egress Outputs | **Implemented (2026-10-20): PRs 1-5 (#401, #403-#406) and the legacy composite DSK move (#407) merged; nothing verified against a real MediaMTX or fleet.** Planned for later (section 8): PiP layer (premade PNG masks and frames), caption targets per output, per-output delay, STT per audio feed. Feeds stay a plain list of what comes in; an *output* is a named pipeline `source (feed or output) -> DSK viewports -> crop -> destinations`, so each output has its own editing and outputs can chain (Program with DSK, Vertical = crop of Program). Mixing stays in the mixer; audio from a separate audio feed can replace an output's sound; a server-side mixer and an audio mixer are scheduled for later. Five sequential PRs. |
| [plan_locked_outputs.md](plans/plan_locked_outputs.md) | Locked outputs | **v1 built (2026-10-25): DSK and plain outputs only.** Outputs the user locks together are rendered by one ffmpeg (shared composite, one encode per member, written to each member's own MediaMTX path so the relay fan-out stays as is). Crop in a group, a per-group ownership lease and direct mode (tee straight to targets) are not built. Nothing verified against a real MediaMTX or fleet. |
| [plan_broadcast_platform_sync_phases.md](plans/plan_broadcast_platform_sync_phases.md) | Phase Plan — Broadcast Platform Sync | Executable 7-phase sequencing for the plan below: foundation → adapter → OAuth → lifecycle routes → wiring → frontend → docs. Records the grounding research that settled two of the source plan's open questions (base64-in-JSON thumbnails, mirroring the legacy `youtube_broadcast_id`). |
| [plan_broadcast_platform_sync.md](plans/plan_broadcast_platform_sync.md) | Broadcast Platform Sync — YouTube Live Scheduling, Thumbnails & Stats (Facebook Live, deferred) | Implemented: new `lcyt-platforms` plugin — AES-256-GCM secrets at rest (`PLATFORM_CREDENTIAL_KEY`, the repo's first), server-side Authorization Code OAuth with lazy refresh, schedule/thumbnail/go-live/end tied to `broadcasts`, all three stats tiers, and a quota-aware stats poller publishing `platform.*`. The browser-only surface it replaces (`youtubeAuth.js`, `youtubeApi.js`, `YouTubeTab.jsx`, `GET /youtube/config`) is **deleted**, not deprecated. Went beyond the written plan on one point: multi-channel-per-project shipped (uniqueness on `(api_key, platform, external_account_id)`, credential selector threaded through every route and the UI) rather than being deferred. **Not done:** the Facebook adapter is a non-wired interface skeleton only (Meta App Review is the real long pole); `PLATFORM_CREDENTIAL_KEY` rotation tooling; recurrence-aware sync; automated pre-broadcast checks. **Unverified:** per an explicit scope decision, nothing was tested against the live YouTube API — request shapes are pinned by stubbed-`fetch` tests against the published contracts, and a real-channel smoke test is still owed. |
| [plan_project_roles.md](plans/plan_project_roles.md) | Project Roles & Visibility — Setup/Assets/Production Access Tiers | Follow-up to `plan_team_org_backend.md`. Design fully resolved 2026-07-26: a 5-role project vocabulary (owner/admin/editor/operator/viewer, kept separate from the org's owner/admin/member vocabulary), a per-project visibility setting with a configurable org-baseline ceiling (viewer/editor, default viewer) plus an unconditional org-admin override to project `admin` on team-visible projects, page-scoped write gates (Setup = explicit admin/owner only, Assets = editor+, Production = the new `operator` role), and existing `'member'` rows migrating to `editor`. UI home is the existing `ProjectSettingsPage.jsx` (Summary/Team tabs) — no new page. **Implemented** 2026-07-26–2026-07-31 via the phase plan below: schema/resolver/gate middleware, per-plugin route gating (lcyt-backend, lcyt-dsk, lcyt-connectors, lcyt-production), and the `ProjectSettingsPage.jsx` UI (visibility toggle, ceiling picker, 5-role member picker). `GET /keys`'s user-scoped listing was fixed 2026-07-31 to return every accessible project (owned, explicitly-membered, or org-baseline-accessible) with its real effective level. `lcyt-rtmp`'s ingestion/stream/radio-config/crop routes and the `icons.js`/`lcyt-files` storage-config routes — initially left ungated on an auth-model blocker (they only had the plain ephemeral-session middleware, which can't resolve a `userId`) — were migrated onto `scopedAuth()`/`requireProjectRole('setup')` 2026-09-10; see `CONSIDER.md`'s resolved entry for the migration recipe. Three more gaps closed the same day: the DSK live-graphics-operate routes (activate/broadcast/renderer start-stop/graphics-push) are now gated at a new `'production'`-tier `requireProduction()` in `dsk-templates.js` (fails open for the plain caption-session JWT `DskControlPage.jsx`'s sidebar mode uses, closed for a real per-user JWT below operator); `bridge.js`'s `GET /instances/:id/env` now requires `'setup'` explicitly despite being a GET, closing the plaintext-token-disclosure gap; and `CameraStreamPage.jsx`/`LcytMixerPage.jsx`'s WHIP/kiosk routes now accept (and enforce ownership on) the existing device-role JWT when a device is logged in, while staying open for a bare capability URL with none. **Not done:** none of `plan_project_roles.md`'s named gaps remain — see `CONSIDER.md` for lower-priority follow-ups (the shared bypass-middleware refactor for the "unauthenticated despite opts.auth" carve-out pattern, and the broader auth/token-model unification, both explicitly deferred to a separate session). |
Expand Down
Loading
Loading