mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
add media session/mpris
This commit is contained in:
parent
76805a0b19
commit
97ccf3bc6d
4 changed files with 105 additions and 11 deletions
|
|
@ -7,6 +7,7 @@ import { AudioPlayer } from '/@/renderer/components';
|
|||
import {
|
||||
useCurrentPlayer,
|
||||
useCurrentStatus,
|
||||
useMuted,
|
||||
usePlayer1Data,
|
||||
usePlayer2Data,
|
||||
usePlayerControls,
|
||||
|
|
@ -62,6 +63,7 @@ export const Playerbar = () => {
|
|||
const player2 = usePlayer2Data();
|
||||
const status = useCurrentStatus();
|
||||
const player = useCurrentPlayer();
|
||||
const muted = useMuted();
|
||||
const { autoNext } = usePlayerControls();
|
||||
|
||||
const autoNextFn = useCallback(() => {
|
||||
|
|
@ -92,7 +94,7 @@ export const Playerbar = () => {
|
|||
crossfadeDuration={settings.crossfadeDuration}
|
||||
crossfadeStyle={settings.crossfadeStyle}
|
||||
currentPlayer={player}
|
||||
muted={settings.muted}
|
||||
muted={muted}
|
||||
playbackStyle={settings.style}
|
||||
player1={player1}
|
||||
player2={player2}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue