Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript
281 B
Raw Blame
/** Caption file extensions the Project panel routes to the caption importer (kept tiny: the panel needs it synchronously). */
const CAPTION_FILE = /\.(srt|vtt|sbv|ttml|dfxp|itt|scc|mcc|stl)$/i;

export const isCaptionFileName = (name: string): boolean => CAPTION_FILE.test(name);