VidStudio SDK reference
    Preparing search index...

    Interface MediaAsset

    A source file imported into the project. Stores intrinsic file properties.

    interface MediaAsset {
        auxiliary?: boolean;
        channel_count: number | null;
        codec: string;
        duration: number;
        file_path: string;
        file_size: number;
        filename: string;
        height: number | null;
        id: string;
        missing?: boolean;
        project_id: string;
        proxy_path?: string;
        rotation?: 0 | 90 | 180 | 270;
        sample_rate: number | null;
        type: MediaType;
        width: number | null;
    }
    Index
    auxiliary?: boolean

    Internal asset introduced by an edit (e.g. the b-roll spliced in by an in-place video replace), NOT user-imported project media. Consumers that present the project's media library exclude these and never auto-select one as the active transcription target. Absent/false for normal imported media.

    channel_count: number | null
    codec: string
    duration: number
    file_path: string
    file_size: number
    filename: string
    height: number | null
    id: string
    missing?: boolean

    The file could not be found when a project document was loaded (loadDocument). Written at load, never inferred: clips on it show a flat placeholder and export refuses.

    project_id: string
    proxy_path?: string
    rotation?: 0 | 90 | 180 | 270

    Intrinsic source orientation, in degrees clockwise, that the frames must be rotated by to display upright (from the container's rotation matrix/tag). This is the source's coded orientation — it is applied at composite time (preview and export), never baked into the stored pixels, so the small H.264 proxy inherits it for free and renders identically to the original. Distinct from the keyframed user "rotation" transform, which stacks on top of this. Absent or 0 means the source is already upright. Video only.

    sample_rate: number | null
    type: MediaType
    width: number | null