(state: VideoTimelineState)
| 452 | } |
| 453 | |
| 454 | export function getTimelineDisplayDuration(state: VideoTimelineState) { |
| 455 | const duration = normalizeDuration(state.duration); |
| 456 | const deletedDuration = getDisplayDeletedRanges({ |
| 457 | ...state, |
| 458 | duration, |
| 459 | }).reduce((total, range) => total + Math.max(0, range.end - range.start), 0); |
| 460 | return roundEditTime(Math.max(0, duration - deletedDuration)); |
| 461 | } |
| 462 | |
| 463 | export function mapTimelineSourceTimeToDisplayTime( |
| 464 | state: VideoTimelineState, |
no test coverage detected