Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/resume playback common play #38

Closed

Conversation

JarbasAl
Copy link
Contributor

solves #18

depends on MycroftAI/mycroft-core#2660 and MycroftAI/mycroft-core#2674

includes/depends on #35 #32 - will need rebase before merging

This refactors the existing adapt intents to not capture too much:

  • next/prev intents now need a context to ensure a playlist exists
  • resume intent now needs a context to ensure playback is occurring

The skill will now handle common play queries, if the current status is paused:

  • if the phrase is an empty string it means the intent was a generic match (play music/read audiobook...)
  • if the phrae matches Resume.voc or Play.voc playback is resumed

This required some changes in core to avoid a call to stop audio service (which prevented resuming)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant