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:
1 parent
5ab3683f44
commit
ee0e36d2c7
14 files changed
+800
-17
No files matched your search
@@ -196,3 +196,9 @@
|
||||
.provider-grid { grid-template-columns: 1fr; }
|
||||
.input--sm { max-width: none; flex: 1; }
|
||||
}
|
||||
|
||||
/* watch party: the YouTube trailer iframe can't be mapped inside the Discord Activity */
|
||||
html.party-host .js-trailer,
|
||||
html.party-viewer .js-trailer {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -1290,3 +1290,45 @@ html.pl-open body {
|
||||
from { transform: scaleX(0); }
|
||||
to { transform: scaleX(1); }
|
||||
}
|
||||
|
||||
/* ---- watch party: viewer mode (party.js) ---------------------------------------------- */
|
||||
/* Viewers follow the host: only volume, mute, fullscreen and PiP stay usable. */
|
||||
|
||||
.pl.is-viewer .pl-host-only,
|
||||
.pl.is-viewer .pl-load__count,
|
||||
.pl.is-viewer .pl-load__bar,
|
||||
.pl.is-viewer .pl-load__ticker {
|
||||
display: none !important;
|
||||
}
|
||||
.pl.is-viewer .pl-seek {
|
||||
pointer-events: none;
|
||||
}
|
||||
.pl.is-viewer .pl-seek__thumb,
|
||||
.pl.is-viewer .pl-seek__tip,
|
||||
.pl.is-viewer .pl-seek__hover {
|
||||
display: none;
|
||||
}
|
||||
.pl-join {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 14px 26px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: var(--pl-accent);
|
||||
color: #000;
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
|
||||
z-index: 1;
|
||||
}
|
||||
.pl-join[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.pl-join .pl-ico {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
Reference in new issue
Block a user