Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
[Unreleased]
Section titled “[Unreleased]”Videos start in a room left in a background tab
Section titled “Videos start in a room left in a background tab”- Chrome holds back every start, muted or not, in a hidden tab that has not yet played any media, and releases it only when the tab is shown. The room’s startup check played exactly the silent clip that would have unlocked the tab, then gave up on it after 3 seconds and unloaded it. A room restored in a background tab, or clicked once and then left, sat on a held video until someone looked at it. The clip is now kept waiting until the tab is first shown, even for a moment, and played again on the first click; after that, a video someone queues starts in the background.
- Skipping the click for good is a browser setting only the viewer can change (in Chrome: Site settings → Sound → Allow; measured: a setting made by an extension does not count). The click prompt and the “Click to join playback” overlay now say where it is for Chrome, Edge, Firefox and Safari.
Jump to a video’s highlight
Section titled “Jump to a video’s highlight”- The SponsorBlock lookup now also fetches the video’s Highlight (the point viewers marked as where it gets going). It is marked on the seek bar in pink, and a “Jump to highlight” button in the control bar moves the whole room there until playback reaches it. It is never skipped to automatically and is not one of the room’s skip categories.
Queue lengths
Section titled “Queue lengths”- Every queue row shows the video’s length on its thumbnail, and the queue
footer shows the number of videos and their total length. Livestreams and
links still resolving have no length; when the queue holds any, the total
is marked as a lower bound (
+).
A refresh no longer moves the room
Section titled “A refresh no longer moves the room”- Reloading the page started the video at the room’s position, and the player’s own move there was reported to the room as the viewer’s seek, so everyone jumped to a position already seconds stale. The engines now announce the positions they set themselves (load start, reload after a refused URL) and those are never published.
Logs that answer “what went wrong, for whom, when”
Section titled “Logs that answer “what went wrong, for whom, when””./deploy/host-status.sh --errors[=HOURS]: client errors, failed proxy requests by status / range / user, refused downloads, other backend warnings and the disk floor, on one screen.- Backend warnings and errors are also written to
data/logs/warnings.log(rotating, 20 MB at most), so they survive deploys. - The nginx media log carries a timestamp and the Access user; refusals name the user, stream and room instead of a truncated URL.
- Every container log is capped (3 × 50 MB) on the small host disk.
Whole-video loudness normalization
Section titled “Whole-video loudness normalization”- The server measures each video’s integrated loudness over its entire audio
rendition (ffmpeg EBU R128,
/api/loudness), once per stream; the player applies that one gain to the whole video instead of guessing from what it has played. Live and HLS sources keep the running estimate. - A seek or SponsorBlock skip no longer resets the leveller to unity, which made the jump play unlevelled, and briefly loud, until it re-measured.
Reauthenticate disconnected rooms
Section titled “Reauthenticate disconnected rooms”- Check for an expired Access login only after the room socket has closed. A confirmed login failure reloads through sign-in, with a reload-loop guard.
- Leave healthy room sockets and media playback alone during focus, resume, and long idle periods; discard late auth responses after reconnection.
Withdraw automatic room-session recovery
Section titled “Withdraw automatic room-session recovery”- Roll back automatic session reloads, socket watchdogs and recovery warnings while investigating reports of interrupted playback.
Store identity (extension 1.5.2)
Section titled “Store identity (extension 1.5.2)”- Use the published Chrome Web Store item’s public key so unpacked Chrome installs use the same extension ID as the store installation.
Public documentation (extension 1.5.2)
Section titled “Public documentation (extension 1.5.2)”- Publish the user guides, deployment documentation and privacy policy on GitHub Pages using the standard Astro Starlight and Galaxy template.
- Link the extension popup, Settings and Chrome Web Store instructions to
the public privacy page. Keep
PRIVACY.mdas its canonical source.
Extension privacy and dependency refresh (extension 1.5.1)
Section titled “Extension privacy and dependency refresh (extension 1.5.1)”- Add a public extension privacy policy with [email protected], links from the popup and Settings, and Chrome Web Store submission instructions.
- Disclose cookie sharing and default automatic sync in the extension. Require HTTPS for all instance requests and reject saved HTTP connections.
- Refresh backend and frontend dependencies, Python to 3.15.0, Node to 26.11.1, nginx to 1.30.6, the PO-token provider to 2.0.2, neko to 3.2.0, dnsproxy to 0.86.0 and cloudflared to 2026.10.3 (checked October 22, 2026).
- Use stable yt-dlp releases instead of arbitrary upstream master snapshots. Refresh deployment images and build bases explicitly; install frontend dependencies from the lockfile without bypassing peer checks.
- Exclude recommended OS packages and remove temporary compiler tools after building Python 3.15 dependencies, reducing the upgraded backend image size.
- TypeScript remains pinned to 6.0.3: the latest stable 7.0.2 builds but
fails lint because typescript-eslint does not support its API yet.
ESLint 10.13.0 passes lint; upstream Next lint plugins still warn about
peer ranges limited to ESLint 9. The latest
braces3.0.3 has an unpatched denial-of-service advisory in this development-only dependency chain.
Room tabs stay loaded (extension 1.5.0)
Section titled “Room tabs stay loaded (extension 1.5.0)”- With the extension connected, Chrome’s Memory Saver no longer discards an
open room tab. A discarded tab runs no code, so a video someone queued
never reached that member. The extension marks room pages of the
connected instance
autoDiscardable: falseand undoes that when the tab leaves the room. A page cannot do this for itself. - The room’s “this tab was unloaded” warning mentions the extension as the other way to keep the tab loaded.
Cookie sharing keeps working for members without the extension
Section titled “Cookie sharing keeps working for members without the extension”- A member’s room tab left in the background loses its connection whenever
Chrome discards or freezes it, and lending stopped at that moment: the
next video someone without the extension loaded ran signed out, and
YouTube refused it. A member now keeps lending to a room for 30 minutes
after their last connection to it closes (
COOKIE_LEND_GRACE_SECONDS), after everyone still connected has been asked. - Only a member actually signed in to the site lends. Every browser holds
visitor cookies for YouTube, so a signed-out member with the extension
could be picked ahead of a signed-in one, and the resolve ran as a
visitor. YouTube and Twitch are now checked for their session cookies
(
SIGN_IN_COOKIES); the same check decides whether a requester’s own cookies are used. - When a site refuses a signed-out resolve, the member is told that nobody in the room is signed in through the extension right now, instead of “Could not resolve a playable stream URL”.
The browser extension looks like the app (extension 1.4.0)
Section titled “The browser extension looks like the app (extension 1.4.0)”- The popup and settings page now use the web app’s slate surfaces from one
shared stylesheet (
extension/shared/theme.css), follow the system’s light or dark theme, and keep the couch mark in the header. There is no colour accent: actions are drawn in ink, and red is left for errors and reset. Queueing is one room field with a send arrow inside it (Enter works too); offering to connect another site is a secondary button once you are already connected. - An installed extension now notices when the instance serves a newer build.
/api/extension/statusnames the version it serves; when it is newer, the toolbar icon shows a NEW badge and the popup offers the download. An unpacked extension cannot update itself, so this is the update path. - The settings footer read v1.1.0 while the extension was 1.3.0; it now shows the manifest’s version. The version is bumped to 1.4.0 so installed copies pick up the new icons and look.
Twitch streams wait out a late playlist instead of looping
Section titled “Twitch streams wait out a late playlist instead of looping”- When a Twitch playlist stopped advancing for longer than the 6 s cushion
(a streamer’s upload hiccup), the playhead reached the end of the media a
few milliseconds past the playlist’s edge. hls.js read that as “outside the
window” and seeked back 6 s, so the viewer saw the same six seconds again
and again. The stream controller now leaves a playhead waiting at the edge
alone (
lib/live-edge.ts), and a stall at the edge waits 30 s, not 12 s, before the stream is reloaded. - The three recovery retries were never given back, so three hiccups over a
long stream ended in “Playback failed after multiple retries” on the
fourth. They refill after 30 s of clean playback (
lib/retry-budget.ts). - The room heartbeat no longer resets a live stream to 1x every five seconds, which undid hls.js’s catch-up towards its latency target.
Queue to playing: smaller room messages, no re-extraction of older entries
Section titled “Queue to playing: smaller room messages, no re-extraction of older entries”- The queue is sent without its streams. Every queue change sent each
member the whole queue with every entry’s full resolve: signed URLs for
every rung and audio track, storyboard sheets and chapters. That is about
50 KB per entry, or 2.3 MB for a queue of 50, serialised once per member.
The advance’s
queue_updategoes out just before itsset_videoon the same socket, so the next video waited for it. A playlist import re-broadcast the growing queue once per resolved entry. Members now get the fields a row draws plus the ladder’s heights, codecs and bitrates (queue_view, about 0.5 KB per entry). The whole entry still arrives withset_video. A broadcast is serialised once for the room. - An older queue entry is not extracted again. The format cache keeps a
resolve for 2 hours, but YouTube signs its URLs for about 6. Once an entry
had been queued longer than 2 hours,
/api/dash-manifestmissed the cache and ran a full yt-dlp extraction (seconds) before the first frame, even though the room’s entry still held URLs the CDN serves. The manifest now falls back to the room’s entry while those URLs are signed. Only connected members get this fallback, the same rule announced warms follow. - Only the entry that plays next is probed when it arrives. Each
resolved queue entry used to have its whole ladder probed. A playlist
import (about 20 renditions per entry) overflowed the 500-entry manifest
index cache, which evicts oldest first. That dropped the index and
subsegment tables of the video playing now, switching off its read-ahead
and skip warming. Entries further back are probed in the last
PREWARM_NEXT_VIDEO_SECONDSof the video before them, or when someone hovers over their row; jumping straight to one that was neither pays for its probes when its manifest is built. - An older entry plays from its own signed URLs only if they outlive the
video. Once the format cache has let a resolve go, the manifest is built
from the room’s entry instead of re-extracting it, but only when its URLs
state a deadline at least the video’s length (and never under
STREAM_URL_MIN_LIFETIME_SECONDS) away. URLs with minutes left would play for minutes and then be refused mid-video. - The unused in-memory
_format_cachedict inservices/cache.pyis deleted.
A SponsorBlock skip plays from the page
Section titled “A SponsorBlock skip plays from the page”- The server already warmed the far side of a scheduled skip in its own
cache, but every viewer still had to fetch it from the server after the
jump — a round trip from Japan to Germany, which was most of the stall.
The skipper now also tells the room where it is about to land
(
skip_upcoming, about 20 s ahead). Each player whose buffer does not already reach that position asks/api/segment-spansfor the exact requests it will make there (the manifest’s URIs and byte ranges on the rung and codec it is playing), fetches them into a bounded in-page cache (lib/jump-cache.ts), and a Shaka networking plugin answers those requests from it when the room jumps. Answers from the cache are markedfromCache, so they never inflate the bandwidth estimate.
Paste to playing: faster starts, fewer stalls, and measured
Section titled “Paste to playing: faster starts, fewer stalls, and measured”A review of the path from adding a URL to its first frame found the warming built for it mostly fetched bytes nobody asked for. Fixed, and measured:
- Warms are exact subsegments. The subsegment table read from each
rendition’s
sidxnow records sizes, so read-ahead, SponsorBlock skip warming and next-video warming fetch precisely the byte spans a player requests. The memory cache only answers a request one entry fully covers; the old aligned 3 MB read-ahead blocks and 4 MB skip spans rarely covered a whole subsegment (never at 1440p and above), so they answered nothing and churned the 256 MB cache. Read-ahead now runs after the cache lookup and never includes the bytes being requested. - One fetch per span. A request for bytes a warm (or another viewer) is
already fetching waits for that fetch and is answered from memory
(
services/inflight.py), instead of fetching the same bytes again beside it. Read-ahead and the other warms draw from separate slot pools, so one room’s read-ahead cannot hold back another room’s start. - The rung that is warmed is the one that plays. Next-video warming used
the top rendition’s first 3 MB — the players’ surface cap rarely allows
that rung, and a 1440p+ subsegment does not fit in 3 MB anyway. The next
entry is now warmed on the rungs the room is watching, at the position it
will resume from.
start_initial_prefetchis deleted. - The manifest probe feeds the player. Probes use googlevideo’s fast
range=path instead of the throttledRangeheader, and the bytes they read are kept in memory, so every rendition’s init-segment and index requests are answered without another trip to the CDN. /api/prewarm. The player announces a start or jump it is about to make (a load, the pointer resting on the seek bar, a queue row) with the position, the rung it will open on and its codec family; the server warms exactly those subsegments. Only videos the server itself resolved are warmed, and only a member of a room may have its members lend cookies.- One extraction per video. Concurrent resolves are shared by URL and whose cookies they run with — no longer per requester and user agent — and a plain resolve joins a refresh under way.
- Queueing never waits on yt-dlp.
queue_addcarries only the URL; the room sees a placeholder at once, the server resolves it, fills it in and probes its ladder. A failure removes it and tells the sender (resolve_failed). A placeholder a restart orphaned is resolved when the next member joins. - One resolve path. The queue advance used
refresh_video_url, a second resolver that was not coalesced, ignored URL expiry, had no remote challenge fallback, lent the adder’s cookies even after they left, and ran on the sender’s socket loop. It is deleted: an advance goes through the normal path, off the socket loop, and passes over an entry that cannot be resolved instead of handing players an address with no stream. - No DNS before the cache. The proxy looked up every host before its
cache lookup, hits included; validation now happens only where a
connection is made (it always did there too). The DNS-over-HTTPS sidecar
caches (
--cache --cache-optimistic), so a miss no longer waits on an HTTPS round trip to Cloudflare for its hostname. - nginx no longer cuts off a cold resolve.
/api/resolveand/api/dash-manifestget a 90 s read timeout instead of the general 20 s, which turned a slow-but-successful two-attempt extraction into a 504. - The opening rung is capped. The auto-quality cap (surface + one rung)
was applied after
load(), but Shaka picks the opening rung before that, so a returning viewer on a fast line opened on 4K AV1 — 13–28 MB a segment — and was capped only afterwards. It is now configured before the load, from the ladder the resolve already describes. - The next video is preloaded in the browser. One Shaka player and one
<video>element now live across DASH videos (the room page keys the player'mse'), and near the end of a video the next entry is preloaded with Shaka’spreload(), so the advance needs no manifest, init or index request and starts from buffered media. Everything per-video (error, clock, quality list, stats, a manual pick, pending seeks) is reset when the source changes. - Resolving starts on paste. A complete-looking link is resolved after a 400 ms pause in typing; Play joins that resolve (the backend shares it) instead of starting another. Queue sends only the URL and clears the box at once; the pending row shows “Resolving…”.
- Warms on intent. Before every load and preload, when the pointer rests
on the seek bar, and when it rests on a queue row, the player asks
/api/prewarmfor exactly the bytes that start or jump will need. - Shaka settings that were silently ignored.
clearBufferSwitchandsafeMarginSwitchmoved underabrin Shaka 5; set understreamingthey were rejected as unknown keys, so a better rendition waited behind the whole buffer.preferredVideoCodecs(deprecated) is nowpreferredVideo. A browser test fails on any configuration warning. - An expired DASH source recovers. When the CDN refused a video’s signed URLs the page re-resolved it, but the manifest’s address did not change, so the player kept the dead one and swallowed every later 403: the video just stopped. The player now loads the manifest again where it stopped once the re-resolve is in.
- Queue internals.
add_to_queue(no caller left) is deleted; playing an entry that is still resolving joins that resolve instead of starting a second extraction. - Measured. Every resolve (extracted, cached or failed), every manifest
build and every player start (
playback_timingon the room socket: set_video → manifest → first frame, preloaded or cold, stalls in the first 30 s) is logged with a fixed prefix and kept in a bounded ring (services/startup_timing.py). Read it with./deploy/host-status.sh --startup, or in the admin overview (startup_timing).
Screen sharing goes through the server
Section titled “Screen sharing goes through the server”- A shared screen no longer travels browser to browser. The sharer’s browser
encodes its capture with
MediaRecorderand pushes the chunks up/ws/share/{room}, a WebSocket of its own; the server copies every chunk to every viewer of that room, and each viewer plays it through Media Source Extensions. The room socket carries play, pause and seek and nothing else — a megabyte of video queued in front of a pause would hold the pause behind it, and the room would drift by exactly that much. - Why, and what it costs. The origin publishes no ports and the tunnel in front of it carries HTTP and WebSocket only, so the peer-to-peer path worked only when the two networks happened to find each other. The relay works from anywhere, and the bill is: about half a second of delay instead of roughly two hundred milliseconds (measured end to end at 365 ms on a local run, from the pixel changing on the sharer’s canvas to the same pixel decoded by a viewer), a custom media pipeline instead of a transport the browser maintains, and every viewer’s copy leaving a single Python worker — five viewers of the default preset is 40 Mbit/s of upload.
- A viewer who joins mid-share sees it. The stream’s initialisation
segment is retained per room and replayed to every new viewer, followed by
the stream from the next cluster rather than from wherever the recorder
happened to cut a chunk: appending from the middle of one makes Chromium
fail permanently (
CHUNK_DEMUXER_ERROR_APPEND_FAILED), which was reproducible at roughly one join in eight.services/webm.pyfinds those boundaries. - One slow viewer cannot stall the sharer. Each viewer has a bounded
queue and its own sending task. A queue that fills is dropped whole — the
bytes are one continuous stream, so trimming it would corrupt what is
left — and the viewer is restarted at the next cluster the way a newcomer
is. A viewer that needs that more than
SHARE_VIEWER_MAX_RESYNCStimes inSHARE_VIEWER_RESYNC_WINDOW_SECONDSis closed with a message saying its connection could not keep up, rather than left on a still frame. Memory is bounded on every axis:SHARE_RELAY_MAX_ROOMS×SHARE_RELAY_MAX_VIEWERS×SHARE_VIEWER_QUEUE_MAX_BYTES, plus one retained header per room. - The media socket is authenticated exactly as the room socket is, and a publisher additionally has to be the room’s current sharer: the verified identity and the connection id together, because the connection id is public inside the room. Every message is then checked against that share rather than against the room, so a media socket that outlives its share — the sharer’s room connection dropped, an admin stopped it — cannot feed the next member’s share. Viewers must be in the room they are watching, and are cut off when they leave it rather than only checked on the way in; nothing a viewer sends on that socket is ever relayed.
- Removed with it:
frontend/lib/webrtc/(the publisher, the viewer and the signalling), theshare_signalandshare_readymessages and their relay,GET /api/webrtc/ice, and theWEBRTC_STUN_URLS/WEBRTC_TURN_USERNAME/WEBRTC_TURN_CREDENTIALsettings that only served them.WEBRTC_TURN_URLstays: the shared browser still reads it as the answer to “has the operator arranged a way for neko’s picture to get out?”. - The end-to-end test is no longer the “everything but the frames” spec it
had to be when the media went peer to peer past the sandbox. It stubs the
screen picker and nothing else, and asserts that the viewer’s
<video>decodes:readyState,videoWidth, an advancing clock, and the latency above — including for a viewer that joins four seconds late.
Per-viewer telemetry is readable from the host
Section titled “Per-viewer telemetry is readable from the host”- Each viewer’s quality report is now logged at INFO whenever the picture
changes — one greppable line with the member, the room, the rung, the
cap, the drawing surface, the pixel ratio, the measured estimate, the
dropped-frame ratio, the ladder size, the mode and the engine. A steady
picture’s thirty-second repeats stay at DEBUG, so a quiet room writes
nothing. Reports were previously visible only through
GET /api/admin/overview, which needs a browser signed in to Cloudflare Access: from the host every admin call correctly returns 401, so nobody could answer “which rung is this viewer on” from the machine, from a log bundle, or after the viewer had left. - Each line ends with a verdict naming the input that best explains the
rung:
surface-capped,bandwidth-limited,dropping-frames,saver-mode,single-rung-ladderorno-rung-reported. The panel shows the same word, so both answers agree. ./deploy/host-status.sh --quality [--tail=N]summarises those lines into one row per viewer — latest rung, every input, the verdict, how many times it changed and when it was last seen — and--quality=<viewer>adds that viewer’s full trail. Viewers who have disconnected are still listed.- The admin panel gained a Picture changes card, backed by a bounded
in-memory history (
PLAYBACK_QUALITY_HISTORY_CAPACITY) that outlives the connection; each of its cards is now a named landmark. - Identity handling is unchanged: nothing weakens authentication, no bypass or shared secret was added, and the email appears only in the backend log (which already names the requester on every resolve, cookie lend and history ping) and in the admin-only endpoint. Nothing is written to disk.
A shared browser in the room
Section titled “A shared browser in the room”- A room can put a real browser running on the server into its player:
everyone watches the same page and the room’s admin types into it. It runs
as a neko container
(
ghcr.io/m1k1o/neko/chromium:3.1.5), takes the player area the way a screen share does, and pauses what was playing — the queue keeps its place, so closing the browser returns the room to it. - Off by default, and it says why. neko’s picture is WebRTC media, and
cloudflared carries HTTP and WebSocket only, so this is the one feature in
the stack that cannot work on the tunnel alone. It needs either a UDP range
published on the host with the public address announced as an ICE candidate
(
BROWSER_UDP_PORTS+BROWSER_PUBLIC_IP, published by the separatedeploy/docker-compose.browser-udp.yml) or a TURN relay (BROWSER_ICE_SERVERS, alongside theWEBRTC_TURN_*values screen sharing already uses). With neither, the room names the missing piece instead of offering a button that opens a black rectangle. - No password ever reaches a browser. The backend logs into neko over the
internal network and hands each member the resulting session as a cookie
scoped to
/neko; the room’s admin gets neko’s admin session (control) and everyone else the user session. Minting is refused unless the room has the browser open, so the endpoint is not a way to obtain a neko login. - One container serves the whole instance, so a second room is told which room is using it, and a room releases it when its last member leaves — the container keeps its tabs, so reopening returns to the same page.
- The service only starts under
--profile browser; nginx proxies/neko/through a variable upstream so an absent container is a 502 on that path rather than an nginx that refuses to start.
-
A Twitch Stream Stalled Repeatedly, 20 Seconds Behind Live: one cause, not two. hls.js was told to sit four declared target durations behind the edge, and a declared target is an upper bound: Twitch declares
#EXT-X-TARGETDURATION:6and ships 2-second segments, so the playhead parked 24s back inside a 30s sliding window. Six seconds of headroom meant a playlist refresh arriving late dropped the playhead off the back of the window, hls.js seeked to recover — the stall — and the drift began again. The target is now derived from the segments the playlist actually lists (frontend/lib/live-latency.ts): three real segments, never belowLIVE_SYNC_MIN_SECONDS, never pastLIVE_SYNC_MAX_WINDOW_FRACTIONof the window. Twitch gets 6s behind the edge with 24s of window to spare; YouTube live, whose segments are 5s, gets 15s — a fixed number of seconds could not have served both. hls.js now also trims residual latency by playing up toLIVE_SYNC_MAX_PLAYBACK_RATE(1.05×) instead of seeking, and its interstitial controller is off: it answersstartLoad(position)by restarting at the position it last resolved itself, which silently undid the alignment. -
The Extension Kept Disappearing From Chrome: it states its own identity now — a
keyin the Chrome manifest and abrowser_specific_settingsid for Firefox. Without one, a browser invents an identity: Chrome derives it from the folder the unpacked extension was loaded from, Firefox issues a fresh one to every temporary add-on. Moving the folder therefore made it a different extension with nothing stored, so the pairing with the instance was gone and had to be made again with no explanation. The install panel also now says to unzip somewhere permanent, since a browser forgets an unpacked extension whose folder moves or is rewritten underneath it — loading one straight from a source checkout is the usual way that happens. -
host-status.sh --cookiesreported on cookie files, which have not existed since cookies became memory-only; it read a config value that no longer exists, so the mode crashed rather than answering. It now reports who is syncing right now, how long ago, and when their cookies drop. -
WEBRTC_TURN_URLset withoutWEBRTC_TURN_USERNAMEandWEBRTC_TURN_CREDENTIALdisabled screen sharing entirely. A TURN entry with blank credentials does not merely fail to relay:new RTCPeerConnection(...)throws on it, so no peer connection was built at all, including the direct ones that never needed a relay./api/webrtc/icenow drops a half-configured relay and logs why. Found while setting up the shared browser, whose instructions are the first thing here that asks an operator to fill those values in.
Cookies are never stored
Section titled “Cookies are never stored”- Cookies now reach the server only through the browser extension and live in process memory until 30 minutes after the last sync, until the member disconnects the extension, or until the process ends. The database table and the per-user files are gone; a backend that held them removes them at startup. yt-dlp reads a RAM-backed scratch file that exists for one extraction. The web form for pasting cookies is removed, and no endpoint returns a cookie value.
- A member without the extension can still add videos: while a member who is signed in to YouTube, Twitch or Kick is in the room, that member’s session resolves the link. Only single-video pages qualify — feeds, playlists, channels and history never — and only for members connected to the room.
- The room suggests installing the extension once to members without cookies, and Settings downloads a build packaged by the instance for Chrome/Edge and Firefox (the old links pointed nowhere). The nightly release uses the same packager and now includes a Firefox build.
- The extension syncs Kick cookies, gives every request a deadline, supersedes a sync that never finished, and catches up when the browser starts, when the instance is opened and when the user returns after a while.
- Every container resolves DNS over HTTPS through an AdGuard
dnsproxysidecar (WT_SUBNET,WT_DNS_IP). The image is pinned: cloudflared removed itsproxy-dnscommand in 2026.2.0, and the deploy compose’s floatinglatesttag turned that release into a crash-looping resolver while the pinned local compose kept working. - The tunnel connector tracks
cloudflare/cloudflared:latestin both compose files; the local file had drifted to 2024.12.2.
Performance and playback reliability
Section titled “Performance and playback reliability”- Reuse cached MP4 byte spans across different player range requests. Warm queued videos and bounded blocks ahead of DASH playback, using the stream owner’s cookies and Googlevideo’s fast range path. HLS prefetch runs in parallel and refills evicted segments. DNS validation runs off the event loop.
- Coalesce simultaneous resolves and extract only the selected video from playlist links. Room members use the server’s refreshed queue entry without repeating resolution. Queue metadata updates preserve signed URL expiry.
- Start the room clock when media actually plays, keeping initial loading out of playback time. Process end events even beside heartbeats, publish removal before resolving the next entry, and clear the player when the queue ends.
- Restore missing Chrome cookie-sync alarms whenever the worker starts without postponing existing deadlines. Refreshed live formats receive a new cache age.
-
Share your screen with the room: a member can put their own gameplay on the room’s player, live. The picture travels browser to browser — this server relays only the handshake — which is both the lowest latency available and the reason it suits a handful of friends: every viewer costs the sharer another copy of the stream. Pick a window in the browser’s own picker, with its sound; the video that was playing pauses and returns afterwards. One member shares at a time, anyone may start, and a sharer who closes their laptop ends it for everyone rather than leaving a frozen frame. Quality is a choice (1080p60, 1440p30, 720p30) with its upload cost stated, and the dialog says plainly that viewers connect directly and can therefore see the sharer’s IP address. A relay for networks that refuse a direct path is a deployment setting (
WEBRTC_TURN_URLand friends) rather than a code change. -
The room prepares what it is about to need: both of its jumps are known before they happen, and both used to land in an empty buffer on bytes nobody had fetched. A SponsorBlock skip now has its destination warmed while the sponsor is still playing — at the exact byte offset, read from the subsegment table in each rendition’s index, and for the renditions viewers are actually fetching rather than the one the resolve called best. The next queue entry is prepared as the current video runs out: every rendition probed (which is what building its manifest spends its time on) and its opening bytes fetched, so the advance hits warm caches. The server does this from the position it already broadcasts; the player asks as well, which covers a room paused near the end of a video or an entry whose duration the server was never told.
-
Auto quality is now a choice, and it explains itself: player settings gained an Auto quality mode — Balanced (the cap above, unchanged and still the default), Highest (follow the connection alone, ignoring the player’s size) and Data saver (never sharper than the player can show). A viewer watching in a small window on a fast line can now take the other side of that trade; the mode lives in their browser and is never sent to the room. The Auto button names the rung auto settled on, and the statistics overlay reports the cap with the surface it was computed from, the measured bandwidth estimate separately from the rendition’s declared bitrate, what is remembered from earlier sessions and how old it is, the dropped-frame ratio, and how many rungs this viewer’s manifest offered. “Auto is stuck on low” is now a readable screen instead of a guess.
-
Per-viewer serving telemetry for the admin panel: every proxy sample carries who asked and which tier answered (upstream, memory, disk) with the throughput a streamed transfer reached, and each viewer’s player reports what it can see of its own picture — rung, cap, drawing surface, pixel ratio, bandwidth estimate, dropped frames — over the room socket. The open
/api/metrics/proxyview deliberately omits identities: it is readable by any signed-in viewer. -
Mono audio: a per-viewer switch in player settings → Mono audio that folds every channel into one, so both speakers carry the same mix. Anything panned hard to one side is no longer lost to someone listening through a single earbud or hearing on one side. It applies to that viewer’s own audio only, works with levelling on or off, and is remembered in their browser.
-
Chapters: a video’s chapters (YouTube’s sections — set by the creator or read from timestamps in the description) travel with the resolved video. They are notched on the seek bar, named under the pointer while hovering and beside the time while playing, and listed in a Chapters tab in the sidebar. Picking one there is a room-wide seek: everyone jumps, not just the viewer who clicked.
-
Admin Panel at
/admin: live rooms with connected members and a force-close action, plus full cache inspection — the disk segment cache (usage against budget, newest entries, oldest age, disk free), the in-memory segment cache (size, hit rate), every cached format resolution (age, expiry, live flag) and the proxy transfer outcomes — each tier with its own clear action. Access is limited to the verified identities listed in theADMIN_EMAILSenvironment variable; the default is empty, which disables the panel entirely.
Changed
Section titled “Changed”-
The player buffers three minutes ahead instead of one (hls.js was also raised past the 60 MB size ceiling that stopped it reaching any length goal), so a wobble on the long path from the origin no longer reaches the viewer. What a quality switch discards grows with that buffer, so the margin a switch keeps was doubled to twenty seconds.
-
Visual Language: the palette moves from a violet accent on pure-neutral greys to a cool slate with one signal red — red already means “live” next to a video, so it carries the primary action and the recording dot without a second hue, and the video is the only saturated thing on screen. The light scheme leaves pure white behind (a page at
#fffgives a card nothing to sit on) and its borders are appreciably stronger than the dark scheme’s, since a dark edge on a light surface carries less apparent weight than the reverse. The six themes now share one neutral and differ only in accent, instead of each tinting the whole application. -
Typography: the app shell no longer sets
uppercaseon everything, so no element has to opt back out to read normally. Small text was set in 9–11pxfont-black uppercase tracking-widest; four named steps (ui-label,ui-meta,ui-title,ui-heading) replace it, carrying hierarchy with size and weight rather than case and letter-spacing.LIVEon a live stream is the one place capitals were kept. -
Accent Colours Follow The Theme: every hard-coded violet is now a lookup of
--accent-primary, which the active theme writes onto the document. Only a handful of places read the theme before, so most of the UI stayed violet whichever theme was chosen.
-
Room Names: an admin can name a room after creation from the room settings. The name shows in the room header and the home-page listing and survives restarts; the id stays the address, so existing links keep working.
-
Chrome Extension Nightly: every commit to
mainnow validates and packages the Manifest V3 extension, uploads the ZIP and SHA-256 checksum as a workflow artifact, and updates one rolling GitHub prerelease taggednightly.
Security
Section titled “Security”- Extension Identity Is Token-Bound: the extension no longer treats a cached
email beside any cached token as proof of who is connected. One atomic,
local-only active connection stores the instance and token; displayed identity
comes from
/api/extension/status, is compared with the browser’s current Access session, and is cleared on a 401, account switch, permission removal, or explicit disconnect./api/tokenreturns its owner in the same authenticated response, removing the former/api/me→/api/tokensession race. Identity and token responses are explicitlyprivate, no-store. - Synchronized Extension Secrets Removed: old builds wrote token, email and
backend URL into
chrome.storage.sync, and the options page still read those values after the background worker moved to local storage. A second browser could therefore display and copy another user’s still-valid token while sync ran as the current local user. Upgrade deletes those historical secrets rather than migrating them, Settings reads only verified background status, and the token reveal/copy UI is removed.
Removed
Section titled “Removed”- Decorative CSS that nothing used: frosted-glass surfaces, a violet-to-pink gradient text fill, a pulsing glow, a float animation, and the glow shadow token. Pulsing is kept only for a dropped connection and a live stream.
-
Every YouTube Livestream Arrived As An Ordinary Video: a stream with DVR enabled showed no LIVE badge, a seek bar over a window that cannot be seeked, a running duration, and the room’s position sync correcting every viewer towards a timestamp that means nothing on a live timeline. yt-dlp reported the stream correctly; the resolve response did not.
is_liveis a field yt-dlp fills in while processing a result, derived fromlive_status, and resolution extracts withprocess=False— so the raw YouTube result carried nois_livekey at all and the response defaulted it to false. Liveness is now read the way yt-dlp derives it:live_statusdecides when the extractor set it, and the rawis_liveflag answers for the extractors that set that instead. -
Preparing The Next Queue Entry Warmed Nothing At All: in production every probe of it was refused — 126
403s,Prepared 0/14 representationsnine times over, for a single advance. A queue entry keeps the resolve it was added with, and the URLs in it state the moment the CDN stops serving them; past that they answer403to everyone, cookies or no cookies. Warming re-probed those dead URLs on every heartbeat for the last 45 seconds of the video before them. A resolve is now checked against the deadline in its own URLs before anything is fetched, and a queued video whose URLs will not outlive the next ten minutes is resolved again first — once, through the existing coalesced resolve path, with the room’s members lending the cookies. A video that still cannot be prepared is left alone for a quarter of an hour instead of being retried nine times — per room, since whether a re-resolve can find cookies is a fact about the room — its opening bytes are no longer fetched from the same dead URLs, and a rendition nobody asked for that cannot be read is a debug line rather than a warning per rendition (the one-line summary stays visible: fresh URLs and nothing readable is a different fault). The same check guards the manifest endpoint, where a cache entry that had outlived its URLs produced a manifest describing nothing; there an entry is only replaced once it has actually expired, because a source that signs short-lived URLs still plays. -
Auto Quality Could Stick Low And Never Recover: three ways, all invisible. A player whose element had not been laid out yet measured a drawing surface of zero pixels, which was treated as a very small player and capped auto at the second-lowest rung of the ladder — and the cap was only ever recomputed when the element’s CSS box changed, so a viewer who never resized their window kept it for the whole session, through manual picks and back to Auto. An unmeasured surface now caps nothing. Changing the device pixel ratio — dragging the window to a monitor with different scaling — changes no CSS box at all, so the cap stayed computed for the old screen; it is now recomputed when the ratio changes. And what was remembered of the connection was the last estimate seen while playing, so a single dip discounted itself into the next session’s opening guess, which chose a lower rendition, whose smaller segments measured slower still; the best estimate the connection reached is remembered instead. The statistics overlay can also forget it outright.
-
Fast Measurements Were Thrown Away And Upward Switches Were Invisible: Shaka was told to ignore any response faster than 20 ms as a browser cache hit — four times its own threshold — which discarded exactly the measurements of viewers close enough to the origin to be served from the proxy’s memory in that time. Its own default is used now. A correct upward switch was also appended behind everything already buffered, which for a player that buffers a minute ahead meant up to a minute before the viewer saw it; a switch now clears the buffer beyond a ten-second margin. Shaka also fetches two segments ahead instead of leaving the link idle for a round trip between them.
-
Seeks Buffered For Seconds Because Auto Picked 4K For A Laptop-Sized Player: a fast connection was handed the 2160p AV1 rendition, whose segments are 13–28 MB each and take seconds to arrive; after a seek the buffer is empty, so nothing shows until a whole segment has landed. Auto quality is now capped to the drawing surface (element height × device pixel ratio) plus one rung of headroom for its better bitrate — a 4K monitor with a large player still gets 4K, a laptop gets 1080p — and the cap follows resizes and fullscreen. Bandwidth still gates the choice, and manual picks are not restricted.
-
Whole-File Media Grabs Starved Playback: a download manager on one viewer’s browser saved every googlevideo rendition the page touched, in full — bare GETs with no byte range, 17 of the 18 GB served in one window, every quality of the ladder including ones the player never used — and the small ranged fetches real playback depends on stalled behind them. No player ever requests a large media file without a range, so the proxy now refuses such requests up front, before any upstream work.
-
The Seek Bar Was Nearly Impossible To Hit: its hover and click area was the 4px track itself. The zone is now four times taller; the track stays thin and thickens under the pointer, and the hover preview sits above the taller zone.
-
New Resolve Fields Were Invisible For Cached Videos: a resolved video is cached for up to two hours, so a deploy that adds a field the client renders (chapters, most recently) changed nothing for any video already in the cache until its entry expired — the room’s video showed no Chapters tab though yt-dlp reports fourteen. Cached entries now carry a schema version and are treated as misses when it differs from the running code’s.
-
Phantom Controls Paused The Room: the control bar fades after three idle seconds, and a click on where a control had been fell through to the video’s click-to-pause — the pointer movement that brings the bar back and the click arrive together, before the overlay is interactive again. A viewer reaching for Settings (or quality, or anything after a buffering pause had let the bar fade) paused everyone. A click that arrives with the wake-up movement now only reveals the controls, and the bar no longer fades while the pointer rests on it.
-
DVR Live Streams Jumped Back To The Start Of Their Window: on a live stream every player’s position is relative to when it loaded the playlist, so no position is comparable across viewers — yet the room stored one viewer’s position and the heartbeat hard-seeked everyone towards it every five seconds, dragging a YouTube DVR stream to the start of its window and rebuffering. Live rooms no longer sync positions at all: play and pause still propagate, but the live edge is the shared position and each player reaches it on its own. Scrubbing a DVR window stays local.
-
The Admin Panel Kept Showing Rooms The Server No Longer Had: an action that failed (closing a room that was already gone answers 404) left the stale list standing, so the dead room stayed clickable and every click repeated “No such room”. Actions now refresh the panel whether they succeed or fail, and a 404 is reported as “already gone” rather than as an error.
-
Closing A Room From The Admin Panel Looked Like A No-Op: the backend closed every socket and deleted the room, but each member’s page treated the dead socket as a network drop and reconnected three seconds later — recreating the room. The close is now announced in-band: members see why, are sent back to the start page, and nothing reconnects.
-
Live Streams Died Mid-Session With No Way Back: a live stream’s signed playlist URL expires on the CDN’s clock, and once it did (Twitch, mid-watch) every proxied fetch answered 403 while the player burned its whole retry budget re-requesting the same dead URL. Live formats are now cached for minutes instead of hours — enforced on read as well, so entries written before this change cannot outlive their token either — and the player treats an upstream 403/410 as “this URL is dead”: it asks the room page for a fresh resolve and reloads seamlessly instead of giving up.
-
Renaming A Room Looked Like It Did Nothing: the rename worked, but nothing said so — the settings modal hides the header, the input already shows what was typed, and the address deliberately never changes. The renamer now gets a confirmation toast, and a refused rename (non-admins) answers the sender with an error instead of silence.
-
Theme Cards All Previewed The Same Colour: the restyle routed every theme’s accent class through the live
--accent-primarytoken so the whole app recolours on switch — correct everywhere except the picker, where all six preview swatches painted the currently active accent. Swatches now use each theme’s own hex. -
Seeking Snapped Back After Buffering: every incoming WebSocket message — heartbeats fire every five seconds — raised a 300 ms suppression window, and a viewer’s seek completing inside it was silently dropped. The server then kept the old position and its next heartbeat saw over three seconds of drift and yanked the viewer back to where they seeked away from. The window was wrong both ways, since
seekedfires only after buffering: server-commanded seeks completing late were echoed back as user seeks. Programmatic seeks are now matched by their landing position, a viewer’s seek always reaches the room, and drift correction waits out an in-flight seek instead of correcting against a stale heartbeat. -
Every Member Paid A Full Extraction For The Same Video:
/api/resolvenever consulted its own cache, so the sender extracted once to paste, then theset_videobroadcast made every member — sender included — extract the same URL again, several seconds each. A fresh cached resolution is now returned directly; within the cache TTL a room of any size pays one extraction per video. -
A Full Cache Stopped Caching Instead Of Evicting: the proxy checked the budget and skipped the write once it was reached, so the first few gigabytes to arrive kept the space and everything afterwards went to the CDN until the janitor’s next sweep trimmed back to exactly the limit. Measured in production across one session: 41 GB served, 37 cache writes, 2 disk hits, and an empty cache directory. A full cache now evicts oldest-first to admit new content, in batches so the directory scan is amortised, and admitted bytes are reserved against the measured size — without that, every write inside one ten-second measurement window read the same stale total and the budget was never seen to be reached. A follow-up review closed two gaps in that fix: a cancelled transfer — which seeking produces constantly — now returns its reservation instead of leaving a phantom that could refill the budget, and a body shorter than the origin promised is discarded rather than cached under a meta claiming the full range, which a later disk hit would have replayed as a 206 whose body does not match.
-
Long Livestream VODs Buffering Forever: a segment index carries 12 bytes per segment, so a VOD’s
sidxoutgrows the fixed 64 KB probe at roughly 7.5 hours — measured 56 KB at 6.5 hours, 101 KB at 12, 159 KB at 19. Renditions whose index did not fit were dropped. Audio segments are longer, so audio’s index is about half the size of video’s: between roughly 8 and 15 hours every video probe failed while audio succeeded, and the manifest that came out had sound and no picture. The player then buffered forever on a video track nobody had declared, and seeking could never complete. A truncatedsidxheader states its own size, so the probe now asks for exactly that (bounded byMANIFEST_MAX_INDEX_BYTES), and losing every representation of one media type is reported as an error rather than served as half a manifest. -
Renditions That Could Never Play Are No Longer Offered: WebM/Matroska keys its segments in a Cues element this project does not index, so every WebM rendition cost a probe and was then dropped. They are excluded before the quality ladder is built; a container that does not identify itself is still left for the probe to judge.
-
Volume Jumping To 100% On The Next Queue Item: queue advancement intentionally remounts the player, and a new
<video>starts at the browser defaults. Persisted preferences updated React after hydration, but a mount-only effect had already copiedvolume=1into the element and never ran again, so the slider showed the stored value while the sound was full volume. Audio preferences now use a hydration-safe local-storage store and React continuously applies the same volume/mute state to each physical media element. -
Endless Buffering, and Paused Videos Resuming Themselves: the MSE playback engine was rebuilt whenever room state changed. Its setup effect depended on
autoPlay(which mirrors play/pause) andinitialTime(which every seek and every 5-second heartbeat rewrites), so the player was destroyed and the manifest reloaded every few seconds during normal playback. That rebuffered from zero, and detaching the media element fired apausethe room broadcast as real while the following reload autoplayed and broadcast a realplay— so a paused room resumed itself. Both values are now read at load time and the engine is keyed on the stream alone. -
A Second Viewer Having To Press Play: a page that has had no user gesture may not start audible playback, and the rejected
play()promise is the only signal the browser gives — the element simply stays paused. Every call site swallowed that rejection into aconsole.log, and theplaymessage broadcast by another member did not even attach acatch, so a friend joining a room that was already playing sat on a still frame with nothing to tell them why. A refused start is now retried muted, since being in sync without sound is much closer to what the viewer wanted than being stopped, and one click restores the audio. If even muted playback is refused, the player says so and offers the click the browser is waiting for. -
Playing An Older Video From A Room’s Queue:
/api/dash-manifestanswered404 "Video has not been resolved yet. Call /api/resolve first.", which the player reported as “the video could not be loaded” (Shaka 1001). Stream URLs expire after a couple of hours and the format cache lives in process memory, so anything left in a queue — or anything at all after a restart — arrived there with nothing cached. The endpoint now resolves on demand and caches the result, sharing one code path with/api/resolve. The room page also stopped mounting the player on the queued copy’s expired URLs while its own re-resolve was still running, which is what made the failure stick; every member now sees the resolving indicator instead of an empty room. -
Seeking Far Into A Video: jumping an hour in stalled for a long time while playing from the start did not. googlevideo accepts a byte range two ways and they are not equivalent: a
Rangeheader goes through its throttled progressive path, while therange=start-endquery parameter — what yt-dlp uses — returns the same bytes at full speed (measured on one 720p rendition, 1 MB at the same offset: 122 ms via the header, 29 ms via the parameter). The proxy now uses the parameter and synthesises the 206 it owes its caller, since the response comes back as a plain 200. Alongside it, Shaka’s rebuffering goal drops from 12s to 4s: that goal is paid in full on every seek with an empty buffer, and it had been raised against stalling that turned out to be the player reloading itself. -
Cached Entries Are Whole Or Absent: the janitor aged and evicted each file on its own, so a cached body could outlive its metadata sidecar or the reverse — leaving something that can never be served but still counts against the budget. Sidecars now expire and are evicted with their body, and orphans of either kind are swept.
Performance
Section titled “Performance”- Ranged Segments Are Cached On Disk Again: every request the MSE engine makes carries
a
Rangeheader, and the persistent cache could not answer one — it was keyed on a 10MB position bucket, so it had no way to describe an exact range and was bypassed for anything ranged. Entries are now keyed on the exact range and store the origin’sContent-Rangeand length, so a hit is byte-identical to the miss it replaces. A re-watch, a backwards seek, or a second viewer in the room no longer costs another trip to the CDN. Entries fetched with a viewer’s cookies stay scoped to that viewer. - Pooled Upstream Connections and Buffered Media Responses: the nginx upstreams had no
keepalivedirective, so clearingConnectionpooled nothing and a fresh TCP connection was opened per segment;proxy_bufferingwas off, which pinned a backend task and its CDN connection for the whole of a slow intercontinental delivery.
[1.1.0] - 2026-08-20
Section titled “[1.1.0] - 2026-08-20”Security
Section titled “Security”- Verified Identity: Cloudflare Access assertions (
Cf-Access-Jwt-Assertion) are now verified against the team JWKS — signature, audience, issuer and expiry — instead of trusting the plainCf-Access-Authenticated-User-Emailheader, which anyone able to reach the origin directly could forge. Configure withCF_ACCESS_TEAM_DOMAINandCF_ACCESS_AUD; without them the previous header behaviour is kept and logged loudly. - Authentication Where There Was None:
/api/proxyand the WebSocket handshake accepted anonymous callers.REQUIRE_AUTHENTICATIONrejects them, defaulting to on once Access is configured. - SSRF Closed: removed the trusted-CDN allowlist that skipped address validation for
any subdomain of an allowlisted domain; redirects are now followed by the proxy with
every hop re-validated; the validated IP is pinned for the connection so DNS cannot
rebind between check and fetch. An adversarial pass then closed four special-use
ranges that carry no restrictive flag from the
ipaddressmodule — RFC 6598 carrier NAT space, the deprecated 6to4 relay range, deprecated IPv6 site-local, and the documentation range — and made IPv4-in-IPv6 unwrapping explicit. - Per-User Cookies: the single shared cookie jar is gone. Cookies are loaded per user and attached per request, and responses fetched with cookies are cached under a key that includes the user’s identity.
- Validated Prefetching: the prefetcher fetched manifest-derived URLs with no validation; it uses the same validated path as the proxy.
- Shared Rate Limiting:
/api/extension/synchad no limit because the limiter was private to the cookie routes. Both share one limiter under separate scopes. - Cookie File Permissions: cookie files are written owner-only on every path.
- Loopback by Default: nginx publishes on
127.0.0.1; the tunnel reaches it over the Docker network.NGINX_BIND/NGINX_PORTopt into wider exposure.
- DASH Manifest Generation:
GET /api/dash-manifestdescribes the adaptive video and audio streams — which yt-dlp returns as separate fragmented-MP4 files with no manifest — by scanning each file’s box headers for its initialization and index ranges. - Single-Element Playback: a Shaka-based engine plays those streams through one media
element via MSE, so the browser muxes video and audio against one clock. Selected with
NEXT_PUBLIC_STREAM_ENGINE=mse; the legacy two-element path remains the default. - Proxy Metrics:
GET /api/metrics/proxyreports per-transfer host, status, byte offset, bytes sent against content-length, latency and outcome, classifying short transfers as truncated — the evidence needed for the unresolved streaming errors. - Backend Origin Override:
NEXT_PUBLIC_BACKEND_ORIGINlets the frontend reach the backend without nginx, sonpm run devworks standalone.
Testing
Section titled “Testing”- 195 backend tests covering SSRF and upstream pinning, redirect validation, Access JWT verification, connection limits under concurrent bursts, WebSocket sync, cookie isolation, manifest generation and hardening.
- Playwright end-to-end tests: two-client room synchronization through the real UI, and MSE playback of a generated manifest verified in a real browser.
- Tests run against a temporary data directory, so they neither depend on nor pollute the real one; CI now runs on the same Python version as production.
- In-Flight Cache Race: results were published outside the lock guarding the table.
- Multi-Worker Corruption: extra workers each held their own room state, splitting rooms in a way that looked like a sync bug. Startup now refuses.
- Container Publish Workflow: every run had been failing because the build requested GitHub Actions cache without setting up Buildx.
- Browser Extension: Automatic cookie sync from Chrome/Firefox to server
- DASH Player Hooks: Extracted
useDashPlayerfor initialization/quality management - PNG Icons: Added multi-size PNG icons for browser extension
- User Detection:
/api/meendpoint for automatic user identification
Security Hardening
Section titled “Security Hardening”- SSRF Protection: Added
validate_proxy_url()with private IP blocking viaipaddressmodule + DNS resolution - CORS Configuration: Made configurable via
ALLOWED_ORIGINSenv var; credentials disabled when wildcard - Connection Limits: Added
MAX_CONNECTIONS_PER_ROOM(50) andMAX_CONNECTIONS_PER_USER(10) limits - Room ID Sanitization: Restrict to alphanumeric, hyphen, underscore only
- Auth Hardening: Query parameter auth fallback gated behind
DEVELOPMENT_MODEenv var - Cookie Validation: Added 1MB upload size limit and Netscape format validation
- WebSocket Concurrency: Room state initialization protected with
_state_lockfor atomic creation + role assignment - Atomic Connection Limits: Per-room and per-user limit checks moved inside
_state_lock(fixes TOCTOU race) - WebSocket Message Validation: Message
typechecked for string type and length (50 chars), 100KB frame cap, JSON decode guard - Cookie Validation (All Lines): Netscape format validation covers all data lines, not just the first 5
- Extension Sync Validation:
/api/extension/syncenforces the same 1MB limit and format validation as/api/cookies - Cookie Upload Rate Limiting:
POST /api/cookieslimited to 10 uploads per user per 60s - In-Flight Cache Bounds:
_in_flight_resultsbounded to 100 entries with 30s TTL, synchronous cleanup under lock - Room Lock Cleanup: Room locks deleted on room cleanup, orphan locks swept every 60s
- Heartbeat Locking:
get_sync_payloadacquires room lock to prevent reading during modification - Cache Robustness: In-flight request wait has 60s timeout; TOCTOU race in bucket cache fixed
- Heartbeat Backoff: Exponential backoff on consecutive heartbeat errors
- Nginx Security Headers: Added
Content-Security-Policy,Strict-Transport-Security,Permissions-Policy - Docker Hardening: Pinned image versions, added container resource limits, removed exposed internal ports
- Extension Permissions: Restricted
host_permissionsto specific video CDN domains - Extension Token Storage: Moved tokens from
chrome.storage.synctochrome.storage.local
- HTTP/2 Protocol Errors: Added
Connection: closeheader and disabled chunked encoding to prevent streaming issues - DASH Loading State: Fixed loading spinner stuck on true when video/audio already loaded
- Cookie Format: Corrected Netscape format -
includeSubdomainsmust be TRUE when domain has leading dot - Volume State: Apply saved volume/muted state on page load for non-DASH mode
- Proxy Redirects: Limited max redirects to 3 to prevent YouTube CDN 503 errors
- HLS Player Loop: Prevented infinite re-initialization by fixing effect dependencies
- Nginx Timeouts: Increased proxy timeouts for large video streams (600s)
- Direct MP4 Streams: Handle non-HLS sources correctly in player
- Extension Security: Fixed multiple security and stability issues in cookie sync
- setInterval Leak: Fixed useDashSync interval accumulation via ref-based callback pattern
- Stale Closures: Fixed useRoomSync stale
playerRef/onVideoChangeviaplayerRefRef/onVideoChangeRefpattern - AudioContext Leak: Cleanup now triggers on
sourceElementchange (browser limit ~6 contexts) - DASH Error Listeners: Fixed gap where error listeners weren’t attached on early return
- DASH Mode Detection: Replaced fragile
volume === 0 && !mutedheuristic withdata-stream-typeattribute - Sidebar Resize Leak: Fixed
mousemove/mouseuplistener leak on component unmount - SSR Hydration Mismatch: Volume/muted state loaded via
useEffectinstead ofuseStateinitializer
Changed
Section titled “Changed”- DASH Sync Hook: Applied callback refs pattern to prevent stale closures
- Player Refactor: Extracted DASH initialization logic to dedicated hook
- Dynamic Referer: Proxy sets referer header dynamically based on URL domain
[1.0.0] - 2025-01-04
Section titled “[1.0.0] - 2025-01-04”Features
Section titled “Features”- Universal Video Resolution: yt-dlp integration supporting 1800+ sites
- Real-time Synchronization: WebSocket-based sync with sub-second accuracy
- DASH/HLS Streaming: Separate video/audio streams with quality selection up to 4K
- Room System: Persistent rooms with queue management
- Cookie Authentication: Bypass age-restrictions with user cookies
- Audio Normalization: “Night mode” with configurable gain boost
- Drag-and-Drop Queue: Reorderable queue with @dnd-kit
- Cloudflare Integration: Zero Trust authentication and tunnel support
Synchronization
Section titled “Synchronization”- Server heartbeat every 5 seconds with authoritative timestamp
- Client latency measurement via ping/pong
- Small drifts (<3s) use playbackRate adjustment (0.95x/1.05x)
- Large drifts trigger hard seek to correct position
- A/V sync for DASH streams with preemptive buffer monitoring
Performance
Section titled “Performance”- Position-aware 10MB bucket caching for DASH streams
- 2-hour format cache TTL for yt-dlp results
- Multi-tier cache: Memory LRU → Disk buckets → Upstream
- Segment prefetching based on playback position
Stability
Section titled “Stability”- Room state persists for 5 minutes after last user leaves
- Automatic cleanup of stale rooms every minute
- Error boundary around video player
- WebSocket auto-reconnect with status indicator
- Premium “Midnight Violet” dark theme
- Responsive sidebar with width persistence
- Quality selection with codec labels (VP9, AV1, H264)
- Sync threshold slider (1-10s) in player settings
- Debug panel showing WebSocket status and playback state
Fixed (Initial Release)
Section titled “Fixed (Initial Release)”- Duplicate dict keys in connection_manager.py
- DnD sends wrong message type for queue reorder
- Async save not awaited causing silent data loss
- Format cache cleanup for expired entries
- Room ID sanitization for special characters
- Cookie sharing for queue items (added_by field)
- DASH audio loop during buffering
- Seeking performance with proper event handling
- Player flickering from re-initialization loop
- Sync status badge using optimistic updates
- AudioContext suspension logic for autoplay
- Video looping sync feedback loop
Technical
Section titled “Technical”- Next.js 16 with App Router and React 19
- FastAPI with fully async I/O
- TailwindCSS 4 for styling
- Non-root Docker containers
- Modular backend structure (core/, services/, api/routes/)