Skip to content

Timer

timer

Description

Timer that counts upwards and can be started, paused and reset by the user.

Attributes

  • $capture.autoStart: true | false
  • $capture.start: number; start in seconds. It can be negative
  • $capture.checkpoints: object array; checkpoints for sounds
  • time in seconds
  • sound id

Sound ids: gong | timerComplete | timerEnding | timerEnds | timerMin | click | start | none

Example

{
  "type": "string",
  "$capture": {
    "as": "timer",
    "autoStart": false,
    "start": -5,
    "checkpoints": [
      {
        "time": -4,
        "sound": "timerEnding"
      },
      {
        "time": -3,
        "sound": "timerEnding"
      },
      {
        "time": -2,
        "sound": "timerEnding"
      },
      {
        "time": -1,
        "sound": "timerEnding"
      },
      {
        "time": 0,
        "sound": "timerEnds"
      },
      {
        "time": 60,
        "sound": "timerMin"
      }
    ]
  },
  "$display": {}
}