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

Commit

Permalink
Merge pull request #2674 from MycroftAI/feat/gui_cps_status
Browse files Browse the repository at this point in the history
add GUI + PAUSED to track status
  • Loading branch information
krisgesling authored Aug 20, 2020
2 parents 14d0e3c + a8e9af8 commit 519f7e1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions mycroft/skills/common_play_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ class CPSMatchLevel(Enum):

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


class CommonPlaySkill(MycroftSkill, ABC):
Expand Down

0 comments on commit 519f7e1

Please sign in to comment.