UNPKG

@omnimedia/omnitool

Version:

open source video processing tools

20 lines 650 B
import { O } from "./o.js"; import { ResourcePool } from "../parts/resource-pool.js"; export class Omni { resources = new ResourcePool(); load = async (spec) => { return Object.fromEntries(await Promise.all(Object.entries(spec).map(async ([key, value]) => [key, await this.resources.store(await value)]))); }; timeline = (fn) => { const o = new O(); const sequence = fn(o); return { format: "timeline", info: "https://omniclip.app/", version: 0, root: o.register(sequence), items: o.items, }; }; } //# sourceMappingURL=omni.js.map