From ee0e36d2c77596ea9c0d456b7cb1433f4b1f50fa Mon Sep 17 00:00:00 2001 From: 4DBug Date: Tue, 27 Oct 2026 10:00:34 -0500 Subject: [PATCH] web: watch-party layer for the Discord Activity party.js is inert unless a transport attaches. The host publishes route changes and playback snapshots; viewers mirror the route, load the host's stream without scraping and follow its clock. Also: forceProxy playback, bug-tv-tmdb/bug-tv-img meta overrides, relative API bases (/tv), trailer hidden in party mode, and the web package no longer ships web/test. --- docs/api.md | 35 ++++ nix/web.nix | 1 + web/css/pages.css | 6 + web/css/player.css | 42 +++++ web/js/app.js | 1 + web/js/config.js | 5 + web/js/party.js | 203 +++++++++++++++++++++++ web/js/router.js | 52 ++++++ web/js/tmdb.js | 13 +- web/js/ui/modal.js | 2 + web/js/ui/player.js | 35 +++- web/js/views/title.js | 2 +- web/js/views/watch.js | 356 ++++++++++++++++++++++++++++++++++++++-- web/test/party.test.mjs | 64 ++++++++ 14 files changed, 800 insertions(+), 17 deletions(-) create mode 100644 web/js/party.js create mode 100644 web/test/party.test.mjs diff --git a/docs/api.md b/docs/api.md index 4269aca..9bf8e8a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -221,3 +221,38 @@ Player workstream owns `web/js/api.js` (bug-tv server client: `streams(params, { - `/v1/remux//probe?start=` and `/v1/torrent//probe?start=` add `keyframe`: the time the remux really starts at. The player uses it as its clock offset because a `