export class Video {
No description provided.
Target style API. Preferred for new code.
Members
8 itemsTarget Style
Target Style
static load({ filePath, buffer }) {
/** Loads a video wrapper from a file path and optional in-memory buffer.
async metadata() {
/** Reads and caches ffprobe metadata for the video file.
async basicInfo() {
/** Returns basic width, height, and duration information.
async hash() {
/** Returns an MD5 hash of the in-memory video buffer.
Legacy Style
Legacy Style
constructor(filePath, buffer) {
/** Builds a video wrapper.
async getMeta() {
/** Reads and caches ffprobe metadata for the video file.
async getBasicInfo() {
/** Returns basic width, height, and duration information.
async getHash() {
/** Returns an MD5 hash of the in-memory video buffer.