VidStudio SDK reference
    Preparing search index...

    Interface MediaManifestEntry

    One media file a saved document refers to.

    interface MediaManifestEntry {
        assetId: string;
        bytes: number;
        hash: string;
        name: string;
        type: MediaType;
        read(): Promise<File>;
    }
    Index
    assetId: string

    The asset's id inside the document.

    bytes: number
    hash: string

    Size plus SHA-256 of the first and last 64 KB ("<bytes>:<hex>"): cheap, and the same key the editor uses to know a picked file and its stored copy are one file.

    name: string

    The file name the user imported.

    type: MediaType
    • A handle to the stored file, not its bytes; read it as a stream or upload it.

      Returns Promise<File>