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.
This commit is contained in:
4DBug committed 2026-10-27 10:00:34 -05:00
1 parent 5ab3683f44
commit ee0e36d2c7
14 files changed
+800 -17

No files matched your search

+2
View File
@@ -4,6 +4,7 @@
*/
import { h } from '../util.js';
import { icon } from './icons.js';
import { party } from '../party.js';
export function openModal(content, opts = {}) {
const prevFocus = document.activeElement;
@@ -57,6 +58,7 @@ export function openModal(content, opts = {}) {
}
export function trailerModal(key, title) {
if (party.mode !== 'solo') return () => {}; // the YouTube iframe can't be mapped inside the Activity
const frame = h('iframe.modal__video', {
src: `https://www.youtube-nocookie.com/embed/${encodeURIComponent(key)}?autoplay=1&rel=0&modestbranding=1`,
title: title ? `${title} — trailer` : 'Trailer',