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
type
• type: string
Logical media type (video, audio, image).
Defined in
url
• url: string
Primary render URL for this asset.
Defined in
previewUrl
• Optional previewUrl: string
Optional preview image URL (thumbnail/poster frame).
Defined in
duration
• Optional duration: number
Optional duration in milliseconds for audio/video assets.
Defined in
width
• Optional width: number
Pixel dimensions for image/video assets (if known).
Defined in
height
• Optional height: number
Defined in
source
• Optional source: "user" | "public"
Optional high-level source/origin hints.
These are advisory only; renderers should rely primarily on url.
Defined in
origin
• Optional origin: string
Defined in
attribution
• Optional attribution: Object
Provider attribution hints for public assets. Useful for UI and export workflows that need to show credits.
Type declaration
| Name | Type |
|---|---|
text? | string |
author? | string |
authorUrl? | string |
licenseUrl? | string |