How to write Pause and Resume intents for APL video player?

amazon-alexa

#1

I am new to Jovo v3 and Alexa. Please tell me how to write pause and resume intent for APL Video players.


#2

Hi @ashiqmoh70, welcome to the Jovo community :tada:

The question is a bit broad, could you further elaborate what you’re looking for?


#3

For audioplayer we have
‘AMAZON.PauseIntent’() {
this.$alexaSkill.$audioPlayer.stop();
},

How to write a pause intent for APL video.
I have tried

‘AMAZON.PauseIntent’() {
this.$alexaSkill.addDirective({
type: “Alexa.Presentation.APL.ExecuteCommands”,
token: “videoplayer”,
commands: [
{
type: “ControlMedia”,
componentId: “videoPlayer”,
command: “pause”
}
]
});
}
I got mapped to this intent when I say “Alexa Pause” while playing the video but the video is not getting paused.
Is there any problem with my code.