mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
The runtime uses data-start + data-duration (not data-end) to bound media clips. parseVideoElements was only reading data-end, so videos with only data-start (no data-end, no data-duration) got end=0 and zero frames were extracted. Two-part fix: 1. parseVideoElements now derives end from data-end → data-start+data-duration → Infinity (meaning 'play for natural duration'). 2. The frame extractor fallback that probes the actual file now triggers for both end<=0 and !isFinite(end), so Infinity correctly causes the video file to be probed for its real duration.