insertClip
Place a video asset clip on the timeline before a specified clip or at the end; optionally trim it by source start/end seconds.
Instructions
Place a clip of a video asset on the timeline, just before beforeClipId (null, or omitted, places it last): another take, or footage imported in the editor. Any video asset of getCurrentDocument works, the primary one too. sourceStartSec/sourceEndSec pick the stretch of the asset in its source seconds, the whole asset by default. Clips stay back to back, so the clips after it shift. Its media continuing the clip before it makes the two one clip (joinedIntoNeighbour). An audio asset is not footage: use addAudio. Nothing here imports a file from disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. | |
| beforeClipId | No | ||
| sourceEndSec | No | ||
| sourceStartSec | No |