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
11 lines
176 B
Python
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()
|