Merge pull request #2900 from MycroftAI/bugfix/common-play-active

Add Common Play to active Skills when invoked
pull/2937/head
Kris Gesling 2021-06-29 20:59:33 +09:30 committed by GitHub
commit 0cbd040a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class CommonPlaySkill(MycroftSkill, ABC):
mycroft-playback-control skill and no special vocab for starting playback
is needed.
"""
def __init__(self, name=None, bus=None):
super().__init__(name, bus)
self.audioservice = None
@ -165,6 +166,8 @@ class CommonPlaySkill(MycroftSkill, ABC):
# "... on the chromecast"
self.play_service_string = phrase
self.make_active()
# Invoke derived class to provide playback data
self.CPS_start(phrase, data)