0

得到实际:

文本 1 --> 文本 2 --> 文本 3

预期:(希望它重复)

文本 1 --> 文本 2 --> 文本 3 --> 文本 1 --> 文本 2 --> 文本 3 --> 文本 1 --> ...

Apl 代码:https ://apl.ninja/document/Borghild/why-sequencer-not-repeating-6sts

{
  "type": "APL",
  "version": "1.8",
  "settings": {},
  "theme": "dark",
  "import": [
    {
      "name": "alexa-layouts",
      "version": "1.5.0"
    }
  ],
  "mainTemplate": {
    "parameters": [
      "payload"
    ],
    "items": [
      {
        "type": "Pager",
        "id": "myPager",
        "items": [
          {
            "type": "Text",
            "text": "Text1"
          },
          {
            "type": "Text",
            "text": "Text2"
          },
          {
            "type": "Text",
            "text": "Text3"
          }
        ],
        "onMount": [
          {
            "type": "Sequential",
            "sequencer": "mySequencer",
            "repeatCount": 99999,
            "commands": [
              {
                "type": "AutoPage",
                "componentId": "myPager",
                "duration": 500
              }
            ]
          }
        ]
      }
    ]
  }
}
4

1 回答 1

0

找到除了 autoPage 之外的解决方案,我还需要像这样在 autoPage 之后添加 setPage,现在它重复了。

            "commands": [
              {
                "type": "AutoPage",
                "componentId": "myPager",
                "duration": 500
              },
              {
                "type": "SetPage",
                "componentId": "myPager",
                "value": 0
              }
            ]
于 2022-02-01T06:53:09.030 回答