Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

339 B
Raw Blame
export function getEditSourceKey(ownerId: string, videoId: string) {
	return `${ownerId}/${videoId}/source/original.mp4`;
}

export function isEditSourceKey({
	ownerId,
	videoId,
	rawFileKey,
}: {
	ownerId: string;
	videoId: string;
	rawFileKey: string | null | undefined;
}) {
	return rawFileKey === getEditSourceKey(ownerId, videoId);
}