Search code examples
node.jsloopsvideoalexa-skills-kit

Loop a Video on Echo Show


I'm building a skill for Echo Show and I've been trying to loop a video (mp4) file. I use the below code to play the video:

if (this.event.context.System.device.supportedInterfaces.VideoApp) {
    this.response.playVideo(LINK);
} else {
    this.response.speak("The video cannot be played on your device. " +
    "To watch this video, try launching the skill from your echo show device.");
}

Unfortunately, regardless of which looping function I use, I either run into a general Amazon error or it simply plays the video once.

I've seen another post that kinda showed how to loop an audio file, but I haven't been able to apply similar logic to video.

Thanks in advance!


Solution

  • The problem is looping is not yet supported for VideoApp directive. You can use Video apl component to loop a video. https://developer.amazon.com/de/docs/alexa-presentation-language/apl-video.html