(duration: number)
| 348 | } |
| 349 | |
| 350 | export 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 | |
| 362 | export function normalizeTimelineState( |
| 363 | state: VideoTimelineState, |
no test coverage detected