Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Stop/pause/resume playback #45

Open
drizzt09 opened this issue Aug 19, 2018 · 6 comments
Open

Stop/pause/resume playback #45

drizzt09 opened this issue Aug 19, 2018 · 6 comments

Comments

@drizzt09
Copy link

I have successfully set it up and its finding and playing the songs requested.
"Alexa, Ask Youtube to play artist title"

However during playback if i say any of these:
Alexa, stop
Alexa, ask Youtube to stop
Alexa, ask Youtube to pause

She always responds with:
"You are not playing anything currently"

Also on a side note... If i want o switch to my own Heroku its only the URL i have to change in the AWS Lambda index.js?
// Set Heroku URL
var heroku = process.env.HEROKU_APP_URL || "https://**********.herokuapp.com";

Nothing else requires changing?

@drizzt09 drizzt09 changed the title Stop playback Stop/pause/resume playback Aug 19, 2018
@Manav-Seth
Copy link

hmm, Alexa, ask Youtube to stop works for me.

@Manav-Seth
Copy link

But I am puzzled why Alexa stop does not work? It most likely has to do with shouldEndSession flag not being set?

@drizzt09
Copy link
Author

So are there logs I can capture to help find out why

@dmhacker
Copy link
Owner

dmhacker commented Sep 3, 2018

Hmm, from my testing, resume/pause works as intended. Stop not working is a known issue; you need to say cancel instead for unknown reasons.

As for changing the Heroku URL, just set the HEROKU_APP_URL environment variable in your Lambda server.

@jarobar435
Copy link

jarobar435 commented Dec 5, 2018

I just done your Setup Process tutorial recently and also got the problem with pause/stop/resume commands.
I am able to use commands "Alexa pause" and then "Alexa resume" for once each track. Then everything goes wrong ("You are not playing anything currently"...) - I have no control over the playback anymore - can't pause or stop it anyway. So literally that means I have to listen to it till very end or unplug my Echo Dot.
So it seems to be the problem with "resume" not setting some kind of flag/boolean.
If you need any detailed feedback - I'm at your service.

(If you're wondering whether I tried the full version "Alexa ask YouTube to pause/resume" then yes, I did - problem still occures)

@dmhacker
Copy link
Owner

dmhacker commented Dec 6, 2018

Yeah, that functionality is a bit buggy; I'm still working out some of the kinks. Try saying "cancel" rather than "pause" or "stop" to completely shutdown the skill if things get out of hand. Let me know if that helps.

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

No branches or pull requests

4 participants