question

newuser-2e18b81e-12f0-4ac8-90ba-f99861f0a98c avatar image
newuser-2e18b81e-12f0-4ac8-90ba-f99861f0a98c asked ·

I'm trying to launch a video in echo show using the videoApp.launch but getting response invalid

{
    'card': '',
    'outputSpeech': '',
    'reprompt': '',
    'directives': [
        {
          "type": "Display.RenderTemplate",
          "template": {
            "type": "BodyTemplate3",
            "title": "Body Template Title Example",
            "token": "SampleCard_92347",
            "textContent": {
              "primaryText": {
                "type": "RichText",
                "text": "Example of text content. This content contains <b>bold text</b>, <i>italics</i>, and <br/> line breaks."
              }
            },
            "image": {
              "contentDescription": "Mount St. Helens landscape",
              "sources": [
                {
                  "url": "https://s3.amazonaws.com/hersheyimages/soap.jpg"
                }
              ]
            },
            "backButton": "VISIBLE"
          }
        },
        {
        "general": {
          "type": "VideoApp.Launch",
          "videoItem": {
              "source": "https://www.example.com/video/sample-video-1.mp4",
              "metadata": {
                "title": "string",
"subtitle": "string"
              }
}  
        }
      }
    ],
    'shouldEndSession': should_end_session
  }

The json looks like above. I'm unable to find whats causing the response invalid error. Please help.
responseecho showvideo skill api
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

NickG@Amazon avatar image
NickG@Amazon answered ·

Can you try either only the Display.RenderTemplate, or the VideoApp.launch directive, and not both in the same response? I do not believe putting both in the same response is valid.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Omkar12353 avatar image
Omkar12353 answered ·

I am not sure if you have solved it already, but I was able to get it working after removing "general" tab on line number 30.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.