mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
fix scrobble time race condition
- revert playerbar slider refactor - re-implement mediasession handler
This commit is contained in:
parent
4e53030e8d
commit
1b15c73db0
2 changed files with 29 additions and 16 deletions
|
|
@ -115,7 +115,16 @@ export const CenterControls = ({ playersRef }: CenterControlsProps) => {
|
|||
],
|
||||
]);
|
||||
|
||||
useMediaSession(playersRef);
|
||||
useMediaSession({
|
||||
handleNextTrack,
|
||||
handlePause,
|
||||
handlePlay,
|
||||
handlePrevTrack,
|
||||
handleSeekSlider,
|
||||
handleSkipBackward,
|
||||
handleSkipForward,
|
||||
handleStop,
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue