- Autoplay goes on to the next video while the window is minimized, in the
tray or behind another window (#316, #349): it used the active window,
which is None then.
- SponsorBlock mute segments unmute again (#322): mpv's mute echo was taken
for the user muting.
- The mini player keeps the video picked from "Up next" instead of going
back to the first one (#321).
- 1440p/4K streams render above 1080p when the player is that large (#370).
- Ambient colour changes no longer re-render the whole watch page several
times a second, and not at all when the glow isn't shown (#307, #332).
- With the window minimized or in the tray, video decoding stops while the
audio goes on (Windows).
Watch history synced one way: reads from the account worked, but nothing
watched in Stream Tube reached YouTube's history. The stats pings went to
s.youtube.com exactly as the player response hands them out, carrying a
client version pinned a year ago. The one implementation known to still
record watch history (youtube.js) does two things differently: it sends
the pings to www.youtube.com, and it keeps its WEB client version within
a few months of the deployed one. Pings also disable redirects (they
carry the sign-in cookies), so an s. that redirects is a silent dead
end; and the stats endpoints answer 204 to everything, so none of this
ever showed as an error.
The pings now go to www.youtube.com, and the client version is scraped
live from any video's embed page (kept for an hour, the pin - bumped -
as fallback) for both the pings and the browser session's innertube
calls, so the whole session claims a current client.
Address review feedback on the proxy change. Rebase onto main at 59fad98
(1.0.2) at the same time.
- Replace the 10 s `timeout_recv_body` override with a 10 s
`timeout_per_read`. The former is a budget for the entire response body and
cuts off large segments on slow lines; the latter restarts on every read, so
it only fires when a connection actually stalls. The upstream total-body
default (30 s) is left in place.
- Reduce retries from 12 to 3 (initial attempt plus two retries) with a flat
200 ms backoff, so a real failure surfaces quickly instead of looking like
a frozen player.
- Keep the 302 fallback to the original CDN URL for both playlists and
segments; it is the part that actually recovers DPI-shaped links.
Verified with cargo build --release on v1.0.2.
YouTube's bot check is per address: on some networks it refuses a video over
IPv6 and plays it over IPv4, or the other way round. On "Sign in to confirm
you're not a bot", resolve once more over the other family; when that plays,
new requests stay on it for the session. googlevideo URLs only play from the
address they were handed out to, so the proxy fetches each one over the family
in its ip= / /ip/ part, which keeps a playing video working across a switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Playback start
- The proxy fetches what mpv opens first (rendition playlists, init
segments and the first segments, or those at the resume position) in
parallel as soon as a video loads, instead of mpv fetching them one at a
time. A 1080p video starts in about 2.3-2.5 s instead of 2.8 s.
- Signed in, Auto played through the TV client, whose stream URLs YouTube
refuses with 403 for about 3 s after handing them out (6.4 s to start).
visionOS goes first now and the TV client takes over when it fails (bot
check, age-restricted). Views still reach the account.
- A fresh stream URL answering 403 is asked again every 200 ms for a few
seconds instead of backing off, for when the TV client is used.
Playback cost
- Frames are rendered at the size the player shows them (in steps of an
eighth, never above the video's own size or 1080p) instead of always at
full size. Watch page at 1080p: 29% -> 12% of a core, 493 -> 361 MB of
memory, 300 -> 210 MB of GPU memory. Fullscreen still renders 1080p.
Video right-click menu
- youtube.com's items in its order: Loop, Miniplayer, Copy video URL, Copy
video URL at current time, Copy embed code, Copy debug info,
Troubleshoot playback issue (reloads the streams at the same position),
Stats for nerds; the app's own actions follow below a divider.
- Drawn like youtube.com's player menu, with on/off switches for Loop,
Stats for nerds and Music mode. Live streams get no Loop, no URL at the
current time and no frame stepping.
- Loop no longer applies to live streams, where it stopped the player from
rejoining a stalled stream.
Subscriptions
- The app records which local subscriptions came from the signed-in
account. Signing in with another account removes the previous account's
channels that the new one doesn't follow; channels followed while signed
out stay. Sync subscriptions reports how many it removed.
Translations for the new strings and for player and settings strings that
had none, in all ten languages.
- Window drag and caption buttons keep working while a video plays (#286, #292)
- SponsorBlock segments sit under the played part of the seek bar (#285)
- Shorts like and dislike toggle and are saved (#284)
- Signed-in TV stream lookup gives up after 4 s and falls back (#289)
- Live videos show a LIVE badge: red at the live edge, grey behind it,
and a click goes back to live (#281)
- Controls and pointer hide after the delay even with the pointer resting
on the control bar, as on youtube.com
- Captions move up above the controls while they show
- Gear menu: Equalizer has an Off option; Audio only, Ambient mode and
Annotations open On/Off choices instead of toggling
- Subtitles/CC > Options changes caption font, color, size, opacity,
background and edge style while a video plays, saved with the settings
- Quality reads "Auto (1080p)" while Auto picks
- Video card menu follows youtube.com's order, app extras last
Player
- Remove the speed and quality pills from the video; controls stay up while
the pointer is on the bar
- Bar right side follows youtube.com: Autoplay switch, CC, Settings,
Miniplayer, Theater, Fullscreen
- Settings menu and right-click menu in youtube.com's order; Quality gains Auto
- Esc closes the settings menu first; the miniplayer no longer passes clicks
to cards beneath it
- A live stream that ends early rejoins the broadcast (#264)
Playback and downloads
- Signed-in live streams without HLS fall back to visionOS / iOS (#268)
- Videos made for kids play through the Android client again
- yt-dlp gets the JS runtime, UTF-8 output and, when YouTube asks for a
signed-in viewer, the browser sign-in's cookies (#260)
- Cookie files are removed after use and swept at start after a crash
Pages
- Titles end with an ellipsis when cut
- Channel videos get Latest / Popular / Oldest chips
- Save dialog toggles YouTube playlists and has a close button (#268)
- Return YouTube Dislike counts of 0 for unknown videos are ignored
- Home keeps its feed when returning; search box clears on Home
- Settings search hides sections with no match
- A second launch hands over to the running app before it opens the database,
so it no longer checks (and may try to rebuild) a file another copy is using.
- The repair is skipped while another copy is running, and a check that could
not run (busy or locked) no longer counts as damage.
- If the damaged file, its journal or the rebuilt file can't be moved, the
files are put back as they were instead of leaving a rebuilt database next to
a stale journal, or no database at all. Each failure is logged.
Google rejects sign-in in a browser controlled over DevTools ("This browser
or app may not be secure"). The window the user signs in to now has nothing
attached; the app notices the sign-in from the profile's cookie names, closes
the window so the browser saves its cookies, and reads them and the picked
channel from a headless copy of the browser on the same temporary profile.
- install.sh: resolve its own folder even when CDPATH is set (#255)
- Import: a one-line FreeTube profiles.db is no longer taken for NewPipe,
and a file with nothing to import reports it instead of success (#253)
- The PiP window takes the player's keys: Space/K, J/L, arrows, M,
speed keys, Esc closes it (#228)
- Settings > Downloads > File name with {title}, {channel} and {id} (#246)
- The browser sign-in explains the cookies.txt route when Google calls
the browser not secure (#233)
- README: remove the performance comparison
- Adapt SmartTube's WebVTT caption processing
- Remove duplicated text and unwanted line breaks
- Handle overlapping cues and repeated phrases correctly
- Limit lines to 40 characters with Unicode-aware word wrapping
- Preserve caption timing and prevent long words from being clipped
GPUI's XIM client panics when xim-ctext can't decode compound text, and
xim-ctext 0.3 only decodes UTF-8 and Japanese, so typing Russian with some
input methods closed the app. A patched xim-ctext 0.3.1 decodes the ISO 8859
sets (Cyrillic, Greek, Latin-2 and others) and turns unknown sets into U+FFFD
instead of failing. Fixes#248.
The player and comments stopped at 1280 px, leaving empty space beside
Up next on wide windows. The column now grows with the window, as long as
the player still fits below the top bar. Fixes#230.
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.
Signed in, Explore → Music shows the Music tab of YouTube's TV app, which
is built for the account, instead of the same Music channel page for
everyone. A song opens with its YouTube Mix queued after it, so it plays
on into similar songs, and next / previous move through the mix. Signed
out the page stays as it was.
Listening to songs one after another in a page built for watching videos
means a floating video, comments and a column of thumbnails. Music mode
lays the app out like YouTube Music instead:
- a player bar along the bottom of every page in place of the mini
player: previous / play / next and the time, the cover, title and
channel with like and dislike, repeat, shuffle, mute, an arrow to open
or close "Now playing", and a progress strip to click along;
- the watch page becomes "Now playing": the cover art or the video (a
Song / Video switch) beside "Up next", the queue the song plays from,
or YouTube's suggestions when there is no queue.
It is offered once a session when a mix starts, and can be turned on and
off from the note button in the player's controls or on the Music page,
and left from the bar or "Now playing". Fullscreen still shows the video;
Shorts keep their own player. The queue panel's title is now cut short so
a long mix name no longer pushes its buttons out of the panel.
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.
Signed in, Explore → Music shows the Music tab of YouTube's TV app, which
is built for the account, instead of the same Music channel page for
everyone. A song opens with its YouTube Mix queued after it, so it plays
on into similar songs, and next / previous move through the mix. Signed
out the page stays as it was.
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.
GNOME's and KDE's media widgets, the lock screen, playerctl and the
keyboard's media keys talk to players over MPRIS on D-Bus, and Stream Tube
wasn't there, so on Linux the video never showed up in them.
src/mpris.rs puts org.mpris.MediaPlayer2.streamtube on the session bus with
the MediaPlayer2 and Player interfaces: title, channel, thumbnail (kept as
a file in the cache directory, which the widgets read more reliably than
URLs), length, position, rate and play state, and Play, Pause, PlayPause,
Stop, Next, Previous, Seek, SetPosition and Raise. Changes are announced
with PropertiesChanged and position jumps with Seeked. Next and previous
work like the player's own buttons: the queue, else "Up next", and back
through the videos watched before.
src/media_session.rs holds the platform-neutral part (the snapshot of the
active player, following the active tab, carrying out commands), so the
macOS counterpart can share it.
zbus was already in the tree through GPUI (ashpd) with the same async-io
backend; it is now listed directly, so Cargo.lock only gains that edge.
Tested in a Debian container: builds, and the ignored test
serves_mpris_on_the_session_bus passes under dbus-run-session.
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.
In Watch later (the account's WL or the local list) a video's menu now has
"Remove from Watch later" where "Save to Watch later" was, since saving to
the list you are looking at does nothing. Other editable lists keep
"Save to Watch later" and "Remove from playlist" as before.
The account's Favorites playlist (found the way #192 finds it) also gets
"Remove from playlist" when it was loaded without the account, as public
playlists are. Removal reuses remove_video / remove_many_from_playlist.
Refs #68