MCPcopy
hub / github.com/CapSoftware/Cap / createTimelineState

Function createTimelineState

apps/web/lib/video-edits.ts:350–360  ·  view source on GitHub ↗
(duration: number)

Source from the content-addressed store, hash-verified

348}
349
350export function createTimelineState(duration: number): VideoTimelineState {
351 const normalizedDuration = normalizeDuration(duration);
352 return {
353 duration: normalizedDuration,
354 trimStart: 0,
355 trimEnd: normalizedDuration,
356 splitPoints: [],
357 deletedRanges: [],
358 selectedSegmentId: null,
359 };
360}
361
362export function normalizeTimelineState(
363 state: VideoTimelineState,

Callers 3

EditVideoClientFunction · 0.90

Calls 1

normalizeDurationFunction · 0.85

Tested by

no test coverage detected