Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

411 B
Raw Blame
import { type ClipRegion, getClipSourceStartMs } from "@/components/video-editor/types";

/** Trim-only native paths concatenate source ranges; they cannot place clips. */
export function requiresClipTimelineRendering(clips?: ClipRegion[]): boolean {
	if (!clips) return false;
	return (
		clips.length !== 1 ||
		clips[0].startMs !== 0 ||
		getClipSourceStartMs(clips[0]) !== 0 ||
		clips[0].speed !== 1
	);
}