feat: instant mix, remote control and stable music library
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- Instant Mix button on albums, artists, the audio player and full-screen player - Remote control dialog (cast icon in app bar/header/item/player): lists other sessions, play/pause/next/prev/seek/stop, and Play-on-device for an item - Music library: repair persisted view types (CollectionFolder/undefined) and fall back to Songs when a music library has no album grouping - Music jitter: remove full-screen backdrop-filters (audio bar and player page) and the body ResizeObserver in the virtualized grid
This commit is contained in:
1 parent
cc1391bb7d
commit
a98663691d
18 files changed
+681
-22
No files matched your search
@@ -18,9 +18,9 @@ $art-size: 48px;
|
||||
padding: 0 0.75rem 0 1rem;
|
||||
|
||||
color: white;
|
||||
background: rgb(18 18 24 / 0.92);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
// Opaque bar: backdrop-filter over the virtualized grid caused constant
|
||||
// compositing/shifting on WebKit.
|
||||
background: rgb(18 18 24 / 0.98);
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
|
||||
|
||||
@@ -1,19 +1,26 @@
|
||||
import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import React, { type ReactNode } from "react";
|
||||
import CastButton from "@/components/buttons/castButton";
|
||||
import InstantMixButton from "@/components/buttons/instantMixButton";
|
||||
import QueueButton from "@/components/buttons/queueButton";
|
||||
|
||||
interface PlayerActionsProps {
|
||||
/** Opens the full-screen player. */
|
||||
onExpand: () => void;
|
||||
onClose: () => void;
|
||||
/** The track currently playing (for cast / instant mix). */
|
||||
item?: BaseItemDto | null;
|
||||
/** Volume control, rendered between the queue and expand buttons. */
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
const PlayerActions = ({ onExpand, onClose, children }: PlayerActionsProps) => {
|
||||
const PlayerActions = ({ onExpand, onClose, item, children }: PlayerActionsProps) => {
|
||||
return (
|
||||
<div className="audio-player-actions">
|
||||
{item && <InstantMixButton item={item} />}
|
||||
{item && <CastButton item={item} />}
|
||||
<QueueButton />
|
||||
<div className="audio-player-volume">{children}</div>
|
||||
<Tooltip title="Open player">
|
||||
|
||||
@@ -245,7 +245,7 @@ const AudioPlayer = () => {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<PlayerActions onExpand={handleNavigate} onClose={handleClose}>
|
||||
<PlayerActions onExpand={handleNavigate} onClose={handleClose} item={item}>
|
||||
<PlayerVolume
|
||||
volume={volume}
|
||||
isMuted={isMuted}
|
||||
|
||||
@@ -10,6 +10,7 @@ import React, {
|
||||
useState,
|
||||
} from "react";
|
||||
import { useShallow } from "zustand/shallow";
|
||||
import CastButton from "@/components/buttons/castButton";
|
||||
import PlayNextButton from "@/components/buttons/playNextButton";
|
||||
import PlayPreviousButton from "@/components/buttons/playPreviousButtom";
|
||||
import QueueButton from "@/components/buttons/queueButton";
|
||||
@@ -55,6 +56,7 @@ const VideoPlayerControls = ({
|
||||
const {
|
||||
mediaSourceId,
|
||||
itemId,
|
||||
item,
|
||||
itemName,
|
||||
episodeTitle,
|
||||
playsessionId,
|
||||
@@ -76,6 +78,7 @@ const VideoPlayerControls = ({
|
||||
mediaSourceId: state.mediaSource.id,
|
||||
itemChapters: state.metadata.item.Chapters,
|
||||
itemId: state.metadata.item.Id,
|
||||
item: state.metadata.item,
|
||||
itemName: state.metadata.itemName,
|
||||
episodeTitle: state.metadata.episodeTitle,
|
||||
// mediaSegments: state.metadata.mediaSegments,
|
||||
@@ -304,6 +307,7 @@ const VideoPlayerControls = ({
|
||||
: "volume_up"}
|
||||
</span>
|
||||
</IconButton>
|
||||
<CastButton item={item} />
|
||||
<QueueButton />
|
||||
|
||||
<ChaptersListButton />
|
||||
|
||||
Reference in new issue
Block a user