mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2571] [MERGED] feat(youtube): in-app volume control for the YouTube Music DJ player #5667
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2571
Author: @Romuromylus
Created: 6/15/2026
Status: ✅ Merged
Merged: 6/15/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/youtube-player-volume📝 Commits (2)
ff18e45feat(youtube): add in-app volume control to the YouTube Music DJ player3b39876fix(youtube): preserve last audible volume on unmute + sync volume across devices📊 Changes
2 files changed (+80 additions, -6 deletions)
View changed files
📝
packages/client/src/components/chat/YouTubePlayer.tsx(+69 -5)📝
packages/client/src/stores/ui.store.ts(+11 -1)📄 Description
Linked issue
Closes #2570
Why this change
YouTube Music DJ mode had no app-side volume control.
youtubeVolumewas only ever set by the DJ agent, so the sole manual lever was YouTube's native in-iframe volume slider (visible when the video is expanded). That control is cross-origin — we can't restyle it or change its behavior — and in our small 246x138 embed it collapses the instant the cursor leaves the speaker icon, so it's nearly impossible to grab and drag. In practice there was no reliable way to manually set YouTube volume.The Spotify mini-player has had an always-visible inline volume control for a long time; this brings YouTube mode to parity.
What changed
lg) and in the mobile expanded widget — mirroring the Spotify mini-player. Being inline, there's no hover-reveal gap and nothing to chase.youtubePlayerVolume(default 70; store version 46 -> 47 with a migration that backfills 70).setVolume()on ready, on track load, and whenever the value changes.youtube_controlvolume now folds into the same persisted value, so the slider stays the single source of truth.Scope is purely additive: the Spotify path and the DJ agent flow are untouched.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I ran / observed:
pnpm check(Impeccable guard + ESLint + alltsc+ production build) passes locally with exit 0.lgwidth) against the live deploy: the volume control renders inline on the YouTube pill next to play/stop. Dragging/clicking the slider changes the volume, and the control stays put when the cursor moves away (the original native-control complaint is gone). The control also renders in the idle "Ready for Music DJ" state and applies once a track loads.Still to verify manually before ticking the boxes above:
Docs and release impact
UI evidence (if applicable)
Before: YouTube volume could only be changed via YouTube's native in-iframe speaker, which collapses on mouse-out in the small embed.
After: an always-visible mute + slider sits on the YouTube pill (and mobile widget), like Spotify's.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.