Comments (2)
You can use "resume", or "resume music".
My question here is whether "play music" should resume - or rather, whether it should only resume. Here's my idea of how this should be implemented:
IF A SKILL IS PAUSED:
RESUME
ELSE
SELECT FALLBACK MUSIC SKILL, START PLAYING
For instance, I could set Pandora as my default music skill, so if I say "Play music" and nothing is already playing, it'll launch Pianobar, which - importantly - will resume from the last station unless otherwise configured.
from skill-playback-control.
#35 integrates the new CPS_track_status mechanism, which allows to know what track is supposed to be on and current playback status
"play music" with #32 becomes media type MUSIC and phrase is "" empty string
i'd argue that condition is enough for this skill to also be a common play skill, and handle that case for resuming playback
it could be used check condition above
IF STATUS == PAUSED:
RESUME
ELSE
ALLOW OTHER SKILL TO HANDLE QUERY
maybe we need yet another status in the Enum? (Done MycroftAI/mycroft-core#2674)
the concept of a default music skill can be tackled after this
from skill-playback-control.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skill-playback-control.