Zooms
Add, change and remove zooms, or make them from the recorded clicks.
Add, change and remove zooms, or make them from the recorded clicks. 6 tools.
list_zooms
Pro. Reads only. A Recordful video's zooms in order of time: each one's index, start and end in seconds as the video plays now, depth (scale, null for the video's zoomDepth), whether it follows the cursor or closes in on a fixed x, y, and its perspective (tilt, turn). The version is what update_zoom and remove_zoom need. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).
add_zoom
Pro. Changes something. Zoom in for a stretch. Without x and y it follows the pointer where its path was recorded, else it closes in on the middle. Fails if a zoom is already there. Times are seconds of the video as it plays now. Pass expectedVersion to apply only to the edit you read; edit_conflict means the edit changed meanwhile and nothing applied: list again and retry. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
expectedVersion | string | no | The version list_zooms or get_timeline gave. |
start | number | yes | Where the zoom starts, in seconds of the video as it plays now. |
end | number | yes | Where it ends, in seconds of the video as it plays now. |
scale | number or null | no | How many times closer, 1.1 to 4. null is the video's usual depth (zoomDepth). |
follow | boolean | no | true keeps the pointer in view as it moves; only where its path was recorded. |
x | number | no | What a fixed zoom closes in on, across: 0 is the left edge, 1 the right. |
y | number | no | What a fixed zoom closes in on, down: 0 is the top, 1 the bottom. |
tilt | number | no | How far the picture leans back in perspective while closed in, 0 (flat) to 100. New zooms lean 50. |
turn | any[] or null | no | Which side leans towards the viewer, [across, down], each -1 to 1: [1, 0] the right, [-1, -1] the top left. null leans towards what it closes in on. |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).
update_zoom
Pro. Changes something. Change one zoom, named by its index in the timeline's zooms. Only what is passed changes. Fails if its new span overlaps another zoom. Times are seconds of the video as it plays now. Pass expectedVersion from the read that gave the index; edit_conflict means the edit changed meanwhile and nothing applied: list again and retry. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
expectedVersion | string | yes | The version list_zooms or get_timeline gave. |
index | integer | yes | The zoom's index in the timeline's zooms (list_zooms or get_timeline). |
start | number | no | Where the zoom starts, in seconds of the video as it plays now. |
end | number | no | Where it ends, in seconds of the video as it plays now. |
scale | number or null | no | How many times closer, 1.1 to 4. null is the video's usual depth (zoomDepth). |
follow | boolean | no | true keeps the pointer in view as it moves; only where its path was recorded. |
x | number | no | What a fixed zoom closes in on, across: 0 is the left edge, 1 the right. |
y | number | no | What a fixed zoom closes in on, down: 0 is the top, 1 the bottom. |
tilt | number | no | How far the picture leans back in perspective while closed in, 0 (flat) to 100. New zooms lean 50. |
turn | any[] or null | no | Which side leans towards the viewer, [across, down], each -1 to 1: [1, 0] the right, [-1, -1] the top left. null leans towards what it closes in on. |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).
remove_zoom
Pro. Changes something; can remove or replace what is there. Take one zoom out of the video, named by its index in the timeline's zooms. Times are seconds of the video as it plays now. Pass expectedVersion from the read that gave the index; edit_conflict means the edit changed meanwhile and nothing applied: list again and retry. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
expectedVersion | string | yes | The version list_zooms or get_timeline gave. |
index | integer | yes | The zoom's index in the timeline's zooms (list_zooms or get_timeline). |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).
remove_zooms
Pro. Changes something; can remove or replace what is there. Take every zoom out of the video. Times are seconds of the video as it plays now. Pass expectedVersion to apply only to the edit you read; edit_conflict means the edit changed meanwhile and nothing applied: list again and retry. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
expectedVersion | string | no | The version list_zooms or get_timeline gave. |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).
generate_auto_zooms
Pro. Changes something; can remove or replace what is there. Make zooms from the clicks recorded on the first scene, as the editor's "Redo zooms from clicks" does: one on each burst of two or more clicks, framing what was clicked or following the pointer. Fails if the recording has no clicks. Times are seconds of the video as it plays now. Pass expectedVersion to apply only to the edit you read; edit_conflict means the edit changed meanwhile and nothing applied: list again and retry. Only the person who recorded it, or the workspace owner, can.
Parameters
| Parameter | Type | Required | What it is |
|---|---|---|---|
videoId | string | yes | The video's id (videoId from list_videos). |
expectedVersion | string | no | The version list_zooms or get_timeline gave. |
replace | boolean | no | true (the default) takes every zoom out first; false keeps them and adds only the made zooms that don't overlap one. |
hold | number | no | How long a zoom stays after the last click of its burst, 0.5 to 5 s. Default 1.5. |
gap | number | no | Clicks closer together than this share one zoom, 0.5 to 6 s. Default 2.5. |
Returns videoId, version (The edit's version. Pass it as expectedVersion to apply edits only to the edit you read), zoomDepth (How many times closer a zoom with a null scale goes), zooms (Every zoom in order of time; index is what update_zoom and remove_zoom take), viewUrl (The video's page on recordful.app), editUrl (Where the user edits it).