@omnimedia/omnitool
Version:
open source video processing tools
22 lines • 609 B
JavaScript
import { Checksum } from "./checksum.js";
export class Datafile {
url;
blob;
filename;
checksum;
constructor(url, blob, filename, checksum) {
this.url = url;
this.blob = blob;
this.filename = filename;
this.checksum = checksum;
}
static async make(file, name) {
const checksum = await Checksum.make(file);
const filename = name ?? checksum.nickname;
const url = URL.createObjectURL(file);
return new this(url, file, filename, checksum);
}
static async load(path) {
}
}
//# sourceMappingURL=datafile.js.map