navidrome/ui/src/audioplayer
Deluan 0265ff3ad1 fix(ui): report playback when restarting current track via prev
The navidrome-music-player library rewinds the current track by directly
mutating audio.currentTime when the Previous button is pressed with
restartCurrentOnPrev (and other programmatic seek paths like singleLoop
reset and mediaSession seek). It does not invoke its onAudioSeeked
callback for these, so the play tracker never learned about the new
position until the next ~30s heartbeat.

Replace the React onAudioSeeked prop with a native HTML5 'seeked' event
listener on the audio element, which fires for every seek (programmatic
or via slider release). The handler is debounced by 250ms so the burst
of seeks emitted while dragging the progress bar coalesces into a single
reportPlayback call at the final position.
2026-05-22 22:23:36 -03:00
..
AudioTitle.jsx feat(ui): integrate transcode decision into web player (#5155) 2026-03-09 11:06:31 -04:00
AudioTitle.test.jsx test(ui): fix warnings (#4187) 2025-06-07 23:11:13 -04:00
index.js Replace react-hotkeys-hook with react-hotkeys 2021-02-02 23:13:18 -05:00
keyHandlers.jsx build(ui): migrate from CRA/Jest to Vite/Vitest (#3311) 2024-09-28 11:54:36 -04:00
locale.js Made the Player behaviour more consistent 2021-07-02 23:36:33 -04:00
Player.jsx fix(ui): report playback when restarting current track via prev 2026-05-22 22:23:36 -03:00
PlayerToolbar.jsx fix(ui): update song fetching logic to disable for radio (#4149) 2025-05-30 08:29:36 -04:00
PlayerToolbar.test.jsx feat(ui) add Save Queue to Playlist (#4110) 2025-05-23 22:04:18 -04:00
styles.js Reformat code with Prettier's new rules. 2023-12-18 15:12:24 -05:00