Sequencer object

Properties

Name
Type
Example
Description

seqId

String

"-N8o2dhQeHQXZ6Emr2I7"

The ID of a sequencer.

Methods

The sequencer object has the following methods:

Method
Return type
Description

-

Plays a sequence to time.

-

Seeks a sequence to time.

-

Sets the duration of a sequence.

-

Sets a sequencer payload.

-

Starts playing a sequence.

-

Stops playing a sequence.

play(time)

Plays a sequence to a specified time.

Parameters

Name
Type
Description

time

number

Time in seconds.

sequencer.play(10.5);

See also

getSequencer seek start stop

seek(time)

Seeks a sequence to a specified time.

Parameters

Name
Type
Description

time

number

Time in seconds.

sequencer.seek(10.5);

See also

getSequencer play start stop

setDuration(duration)

Sets the duration of a sequence.

Parameters

Name
Type
Description

duration

number

Duration in seconds.

sequencer.setDuration(120.0);

See also

getSequencer setPayload

setPayload(payload)

Sets the payload of a sequence.

Parameters

Name
Type
Description

payload

JSON

A payload defining a sequence's data and timing.

const payload = {
  "2ed116aa-bb56-49a5-adc4-37f7654312a8": [{
    "beginTime": 2,
    "endTime": 5,
    "controlNode": {
      "payload": {
        "Text": "This is headline 1"
      }
    }
  }, {
    "beginTime": 5,
    "endTime": 9,
    "controlNode": {
      "payload": {
        "Text": "This is headline 2"
      }
    }
  }],
  "dce1e90c-1d8d-4854-87e0-da8eed153105": [{
    "beginTime": 7,
    "endTime": 10,
    "controlNode": {
      "payload": {
        "Image": "https://assets.singular.live/7072b13f9e20b98034f48d6202400ff9/svgs/57VdHBnRTPNEU4yirlLfKm_w880h146.svg",
        "Image Size": "100",
        "Title": "A panel on the left size"
      }
    }
  }]
};

sequencer.setPayload(payload);

See also

getSequencer setDuration

start()

Starts playing a sequence.

stop()

Stops playing a sequence.

Last updated