VideoApp Interface Jovo 4

v4
amazon-alexa

#1

Hi!
I’m trying to use the Alexa VideoApp Interface with Jovo 4.
Following Alexa documentation: https://developer.amazon.com/en-US/docs/alexa/custom-skills/videoapp-interface-reference.html

I tried to send this request but it gives me an error because Jovo 4 is adding the parameter “shouldEndSession”, while in the Alexa docs is specified that that parameter should not be used in a Video request.

this.$send({
    platforms: {
        alexa: {
            nativeResponse: 
            {
                "version": "1.0",
                "sessionAttributes": null,
                "response": {
                  "outputSpeech": null,
                  "card": null,
                  "directives": [
                    {
                      "type": "VideoApp.Launch",
                      "videoItem": {
                        "source": "https://www.example.com/video/sample-video-1.mp4",
                        "metadata": {
                          "title": "Title for Sample Video",
                          "subtitle": "Secondary Title for Sample Video"
                        }
                      }
                    }
                  ],
                  "reprompt": null
                }
              }
        },
        },
}); 

How can I send a VideoApp directive request using Jovo 4?

Thanks,
Radiosa


#2

You can add shouldEndSession: undefined to the nativeResponse. Here’s an example in the docs: https://www.jovo.tech/docs/output-templates#native-response


#3

It worked fine, thanks @jan!