Files
linux-voice-assistant/linux_voice_assistant/player/state.py
T
Philipp Grafe d42abaa2c9 Fix mpv pause state when loading new media
Fixes #107

This fixes an issue where loading a new media URL while the player
was paused would keep playback paused, causing Music Assistant to
show the player as playing while no audio was audible.

The mpv pause state is now always set explicitly when starting playback,
ensuring deterministic behavior
2026-02-03 21:34:57 +01:00

11 lines
176 B
Python

from enum import Enum, auto
class PlayerState(Enum):
IDLE = auto()
LOADING = auto()
PLAYING = auto()
PAUSED = auto()
STOPPING = auto()
ERROR = auto()