跳转到内容
EN

读取剪辑状态

GET /cut/v1/projects/{project_id}/state

Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.

支持状态: supported

参数

名称位置类型必填说明
project_idpathstringtrueProject identifier returned by its create or list operation; use the id, not a display name.

响应

HTTP 200

Requested resource or operation result; use its revision when preparing a guarded edit.

application/json

名称 类型 说明
revision integer Committed project revision from retrieve, state, timeline or execute; increases after each successful write.
settings object Current rendering settings for the project.
settings.width integer Output width in pixels; even integer between 16 and 4096.
settings.height integer Output height in pixels; even integer between 16 and 4096.
settings.fps object Exact frames-per-second fraction used to snap second-based edits to project frames.
settings.background string Background color as #RRGGBB or #RRGGBBAA; omission uses black.
settings.sample_rate integer Project audio sample rate in hertz; fixed at 48000.
duration_sec number Current project duration. In seconds, not frames or microseconds.
tracks array<object> Track summaries and clip counts.
tracks[].id string Track id created by AddTrack; reuse in Insert, UpdateTrack or DeleteTrack.
tracks[].name string Human-readable track name chosen by the editing script.
tracks[].kind string video contains visual clips; audio contains sound clips; caption contains timed text.
tracks[].locked boolean True prevents editing clips on this track.
tracks[].hidden boolean True hides a visual or caption track from the rendered output.
tracks[].muted boolean True silences an audio track.
tracks[].index integer Zero-based layer order; zero is topmost.
tracks[].items integer Number of clips on this track.
bindings array<object> Libraries currently available to the project.
bindings[].name string Unique binding alias used in imports and exports; begins with a lowercase letter.
bindings[].library_id string Media library id from praxis.media.libraries.create or list; must be accessible to this organization.
bindings[].access string read permits using library assets; read_write also permits imports and exports into the library.
bindings[].default_upload boolean True selects the one read_write library used when an import or export omits binding.
offline_count integer Number of clips with unavailable media requiring attention.