mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-25 11:56:31 +02:00
fix mpv playback resume on queue end / stop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user