Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit 519f7e1

Browse files
authored
Merge pull request #2674 from MycroftAI/feat/gui_cps_status
add GUI + PAUSED to track status
2 parents 14d0e3c + a8e9af8 commit 519f7e1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

mycroft/skills/common_play_skill.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ class CPSMatchLevel(Enum):
3131

3232
class CPSTrackStatus(IntEnum):
3333
DISAMBIGUATION = 1 # not queued for playback, show in gui
34-
PLAYING = 2 # Skill is handling playback internally
35-
PLAYING_AUDIOSERVICE = 3 # Skill forwarded playback to audio service
36-
QUEUED = 4 # Waiting playback to be handled inside skill
37-
QUEUED_AUDIOSERVICE = 5 # Waiting playback in audio service
38-
BUFFERING = 6 # Incase it's an online source the buffering state or
39-
STALLED = 7 # stalled state helps to know when to show the buffering ui
40-
END_OF_MEDIA = 8 # helps to know if we want to do autoplay or something
34+
PLAYING = 20 # Skill is handling playback internally
35+
PLAYING_AUDIOSERVICE = 21 # Skill forwarded playback to audio service
36+
PLAYING_GUI = 22 # Skill forwarded playback to gui
37+
PLAYING_ENCLOSURE = 23 # Skill forwarded playback to enclosure
38+
QUEUED = 30 # Waiting playback to be handled inside skill
39+
QUEUED_AUDIOSERVICE = 31 # Waiting playback in audio service
40+
QUEUED_GUI = 32 # Waiting playback in gui
41+
QUEUED_ENCLOSURE = 33 # Waiting for playback in enclosure
42+
PAUSED = 40 # media paused but ready to resume
43+
STALLED = 60 # playback has stalled, reason may be unknown
44+
BUFFERING = 61 # media is buffering from an external source
45+
END_OF_MEDIA = 90 # playback finished, is the default state when CPS loads
4146

4247

4348
class CommonPlaySkill(MycroftSkill, ABC):

0 commit comments

Comments
 (0)