Have "Pause", "Resume", "Halt" really been working?
Closed this issue · 3 comments
I've been playing with Kodi and Alexa for perhaps 6 months and haven't been able to get the Pause/Resume and Halt intents to work until now. I've now discovered that there seem to be identical bugs in alexa.py, namely the lack of the preface
@ask.intent('Stop')
@preflight_check
before
def alexa_stop_cancel(kodi):
and
@ask.intent('PlayPause')
@preflight_check
before
def alexa_play_pause(kodi):
Making these corrections to alexa.py is a little tricky if you're using m0ngr31's kanzi lexigram, as alexa.py is imported and zipped for you. You'll need to do the import and zip, then pull the alexa.py out of the zipped file, make the edits and then reinsert it into the zip file before importing it to AWS Lambda.
Rod
@ask.intent('Stop')
@preflight_check
before
def alexa_stop_cancel(kodi):
alexa_stop_cancel() and alexa_play_pause() are not directly called by any Intent. Further, the Intents in question are AMAZON.StopIntent, AMAZON.CancelIntent, AMAZON.PauseIntent, and AMAZON.ResumeIntent. I'm not really sure where you're getting Stop and PlayPause.
For me, it has always worked the way it currently is on two different installations. Just asked the Kodi skill to 'pause,' 'resume,' and 'stop' -- all worked fine.
Do note that because these are such short phrases, she does often have trouble hearing them over the audio from the media playing. But they're not fundamentally broken or anything.
What you're doing isn't right, though. You really should update to the latest release. We can't really support modified old releases.