[GH-ISSUE #2570] [Feature]: In-app volume control for the YouTube Music DJ player #1267

Closed
opened 2026-10-21 05:30:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2570

Originally assigned to: @Romuromylus on GitHub.

What problem does this solve?

The YouTube Music DJ player has no app-side volume control. youtubeVolume is set only by the DJ agent, so the only way a user can manually adjust YouTube playback volume is YouTube's native in-iframe volume slider (shown when you expand the video). That control is cross-origin (we can't restyle or change its behavior) and is awkward in our small 246x138 embed: the slider collapses the moment the cursor leaves the speaker icon, so it's very hard to actually grab and drag. In practice there is no reliable manual volume control for YouTube mode.

By contrast, the Spotify mini-player has had an always-visible inline mute button + volume slider for a long time. YouTube mode should reach parity.

Proposed solution

Add an always-visible mute button + volume slider to the YouTube player, mirroring the Spotify mini-player:

  • Inline in the desktop top-bar pill (at lg) and in the mobile expanded widget, so there's no hover-reveal gap and nothing to chase.
  • Persist the value in the UI store (youtubePlayerVolume, default 70) and apply it to the IFrame player via setVolume().
  • Fold the DJ's youtube_control volume into the same persisted value so the slider is the single source of truth.

Alternatives considered

  • Rely on YouTube's native iframe volume control. Rejected: it's cross-origin, so we can't fix the collapse-on-mouse-out behavior, and it's only reachable when the video panel is expanded.
  • Route volume through the game master mixer's "Music" channel. Rejected: that mixer doesn't drive the YouTube player, and it only exists in game mode (no control in normal chat).

Additional context

Pairs with the YouTube DJ feature and its recent tool-binding regression fix. Purely additive; the Spotify path is untouched.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Jun 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2570 Originally assigned to: @Romuromylus on GitHub. ## What problem does this solve? The YouTube Music DJ player has no app-side volume control. `youtubeVolume` is set only by the DJ agent, so the only way a user can manually adjust YouTube playback volume is YouTube's native in-iframe volume slider (shown when you expand the video). That control is cross-origin (we can't restyle or change its behavior) and is awkward in our small 246x138 embed: the slider collapses the moment the cursor leaves the speaker icon, so it's very hard to actually grab and drag. In practice there is no reliable manual volume control for YouTube mode. By contrast, the Spotify mini-player has had an always-visible inline mute button + volume slider for a long time. YouTube mode should reach parity. ## Proposed solution Add an always-visible mute button + volume slider to the YouTube player, mirroring the Spotify mini-player: - Inline in the desktop top-bar pill (at `lg`) and in the mobile expanded widget, so there's no hover-reveal gap and nothing to chase. - Persist the value in the UI store (`youtubePlayerVolume`, default 70) and apply it to the IFrame player via `setVolume()`. - Fold the DJ's `youtube_control` volume into the same persisted value so the slider is the single source of truth. ## Alternatives considered - **Rely on YouTube's native iframe volume control.** Rejected: it's cross-origin, so we can't fix the collapse-on-mouse-out behavior, and it's only reachable when the video panel is expanded. - **Route volume through the game master mixer's "Music" channel.** Rejected: that mixer doesn't drive the YouTube player, and it only exists in game mode (no control in normal chat). ## Additional context Pairs with the YouTube DJ feature and its recent tool-binding regression fix. Purely additive; the Spotify path is untouched. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:30:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1267
No description provided.