Hi,
I'm trying to get to grips with how to manage the pause and resume functionality of Alexa with a video driven skill with APL.
Please see the source code of my skill here, https://github.com/nicktaras/alexa-go-fit
Here's a snippet of the code, where I'm trying to get the video to go into a paused state.
const PauseIntentHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'IntentRequest'
&& (handlerInput.requestEnvelope.request.intent.name === 'AMAZON.PauseIntent')
},
handle(handlerInput) {
return handlerInput.responseBuilder
.speak("Hello pause")
.addDirective({
type: "Alexa.Presentation.APL.ExecuteCommands",
commands: [
{
id: "videoDisplay",
type: "ControlMedia",
command: "pause"
}
]
})
.withShouldEndSession(false)
.getResponse();
}
}
I did read that you can't use APL ExecuteCommands with video, where I've also followed these guides / code examples with no luck:
https://developer.amazon.com/docs/alexa-presentation-language/apl-video.html
https://developer.amazon.com/es/docs/custom-skills/videoapp-interface-reference.html
https://developer.amazon.com/docs/alexa-presentation-language/apl-commands-media.html
Thanks for any help you can provide in getting to the bottom of this issue.
Nick