Edit command

addClip

Places a clip of a bin item on a named track.

Fields

  • mediaIdstringrequired

    The bin item to cut from.

  • startnumberrequired

    Timeline position in seconds, floored at 0.

  • trackIdstringrequired

    The lane to place it on.

  • ripplebooloptional · default false

    When true and the drop would overlap something on this track, every clip at or after start is shifted right by the new clip's duration, so the drop lands without covering anything. False for programmatic adds, true for a drop from the bin.

Duration comes from the media: its own length for video and audio, 5 s for a still or a file with no reported length.

{ "op": "addClip", "mediaId": "m1", "trackId": "T1", "start": 2.5 }