Skip to main content

Interface: ProjectAssetJSON

Lightweight asset descriptor that can be embedded in ProjectJSON to make projects more portable across environments.

This mirrors the core fields of the editor MediaItem/MediaAsset type but intentionally omits heavy or provider-specific details.

Table of contents​

Properties​

Properties​

id​

• id: string

Stable asset id used by timeline elements (e.g. video/image/audio).

Defined in​

types.ts:61


type​

• type: string

Logical media type (video, audio, image).

Defined in​

types.ts:63


url​

• url: string

Primary render URL for this asset.

Defined in​

types.ts:65


previewUrl​

• Optional previewUrl: string

Optional preview image URL (thumbnail/poster frame).

Defined in​

types.ts:67


duration​

• Optional duration: number

Optional duration in milliseconds for audio/video assets.

Defined in​

types.ts:69


width​

• Optional width: number

Pixel dimensions for image/video assets (if known).

Defined in​

types.ts:71


height​

• Optional height: number

Defined in​

types.ts:72


source​

• Optional source: "user" | "public"

Optional high-level source/origin hints. These are advisory only; renderers should rely primarily on url.

Defined in​

types.ts:77


origin​

• Optional origin: string

Defined in​

types.ts:78


attribution​

• Optional attribution: Object

Provider attribution hints for public assets. Useful for UI and export workflows that need to show credits.

Type declaration​

NameType
text?string
author?string
authorUrl?string
licenseUrl?string

Defined in​

types.ts:83