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

Function totalDuration

apps/desktop/src/routes/editor/context.ts:960–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

958 );
959
960 const totalDuration = () =>
961 project.timeline?.segments.reduce(
962 (acc, s) => acc + (s.end - s.start) / s.timescale,
963 0,
964 ) ?? props.editorInstance.recordingDuration;
965
966 type State = {
967 zoom: number;

Callers 15

context.tsFile · 0.85
zoomOutLimitFunction · 0.85
setPositionFunction · 0.85
isAtEndFunction · 0.85
PlayerContentFunction · 0.85
addCaptionAtPlayheadFunction · 0.85
isAtEndFunction · 0.85
useSetPreviewTimeFunction · 0.85
neighborBoundsFunction · 0.85
findPlacementFunction · 0.85
addSegmentAtFunction · 0.85
MaskTrackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected