question

newuser-657f111a-b548-487b-939e-2787eebdb06e avatar image

APL MediaControl pause command doesn't work on FireTV

Hello,

I'm trying to pause a video in an APL document by voice command. It works fine in the simulator and with an Echo Show (1st Gen) device, but not with a FireTV stick (the video just keeps playing).

When the Skill receives an AMAZON.PauseIntent request, it responds with the following JSON:

{
    "version": "1.0",
    "response": {
        "directives": [
            {
                "type": "Alexa.Presentation.APL.ExecuteCommands",
                "token": "APL-Video-Token",
                "commands": [
                    {
                        "type": "ControlMedia",
                        "command": "pause",
                        "componentId": "VideoPlayer"
                    }
                ]
            }
        ]
    }    
}

The APL document:

"items": [
     {
          "type": "Container",
          "items": [
               {
                    "id": "VideoPlayer",
                    "type": "Video",
                    "source": "<URL>",
                    "autoplay": true,
                    "position": "absolute",
                    "width": "100vw",
                    "height": "100vh",
                    "scale": "best-fit",
                    "onEnd": [
                         {
                              "type": "SendEvent"
                         }
                    ]
               }
          ]
     }   
]

Does anyone have a solution for this?

fire tvaplvideo
10 |5000

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

Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hi,

Thanks for posting.

Can you share the full layout and also the RenderDocument directive that you send from your code?

Regards,
Gaetano

1 comment
10 |5000

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

Hi Gaetano,


Thanks a lot for your answer and sorry for the delay. The RenderDocument directive together with the full layout:


{
  "type": "Alexa.Presentation.APL.RenderDocument",
  "token": "APL-Video-Token",
  "document": {
    "type": "APL",
    "version": "1.0",
    "mainTemplate": {
      "items": [
        {
          "type": "Container",
          "items": [
            {
              "id": "VideoPlayer",
              "type": "Video",
              "source": "https://url/video.mp4",
              "autoplay": true,
              "position": "absolute",
              "width": "100vw",
              "height": "100vh",
              "scale": "best-fit",
              "onEnd": [
                {
                  "type": "SendEvent"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}


0 Likes 0 ·
Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hello,

the Fire TV might not be running the same version of the APL render. Please share the DSN (Device Serial Number) in a contact us case here, so that I can troubleshoot this issue further.

Regards,
Gaetano

10 |5000

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