fix mpv playback resume on queue end / stop

This commit is contained in:
jeffvli
2026-07-11 18:18:06 -07:00
parent c5d074be16
commit bafc14b55a
2 changed files with 12 additions and 1 deletions
@@ -278,7 +278,9 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => {
const handleTrackEnded = () => {
const { player } = usePlayerStore.getState();
if (player.status !== PlayerStatus.PLAYING) {
// mpv often emits `stopped` before this event, which already set STOPPED
// via mediaStop. Still run mediaAutoNext so end-of-queue seek/reset runs.
if (player.status !== PlayerStatus.PLAYING && player.status !== PlayerStatus.STOPPED) {
return;
}