mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-12 07:09:59 +00:00
fix(cli): align video output boundaries (#2490)
* fix(cli): align video output boundaries * test(cli): honor CI ffmpeg fixture path * test(cli): decouple duration precedence from ffmpeg * test(cli): pin half-open video boundaries * test(producer): refresh style 7 boundary golden
This commit is contained in:
@@ -583,7 +583,7 @@ export function initSandboxRuntimeModular(): void {
|
||||
const computedEnd =
|
||||
duration != null && duration > 0 ? start + duration : Number.POSITIVE_INFINITY;
|
||||
return (
|
||||
currentTime >= start && (Number.isFinite(computedEnd) ? currentTime <= computedEnd : true)
|
||||
currentTime >= start && (Number.isFinite(computedEnd) ? currentTime < computedEnd : true)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -2827,7 +2827,7 @@ export function initSandboxRuntimeModular(): void {
|
||||
const mediaStart =
|
||||
Number.parseFloat(rawEl.dataset.playbackStart ?? rawEl.dataset.mediaStart ?? "0") ||
|
||||
0;
|
||||
if (Number.isFinite(start) && state.currentTime >= start && state.currentTime <= end) {
|
||||
if (Number.isFinite(start) && state.currentTime >= start && state.currentTime < end) {
|
||||
if (!rawEl.paused) {
|
||||
clock.attachAudioSource({ el: rawEl, compositionStart: start, mediaStart });
|
||||
foundActive = true;
|
||||
|
||||
Reference in New Issue
Block a user