Fix: PiP overlays played as a still picture instead of video
AetherCut v1.7.85 shipped on May 22, 2026.
What's new in v1.7.85?
- Tester report: 'The PiP is just a picture and not the video I added to it.'.
- Root cause: startSegmentVideos and seekToTime both paused all video elements then played/seeked only the MAIN-TRACK clip. Overlay (PiP) <video> elements stayed paused on frame 0 forever, while the canvas renderer kept drawing that stale frame.
- Fix: both code paths now iterate overlayClipsRef and play/seek each overlay clip in range. 50ms drift gate prevents redundant per-frame seeks during steady-state playback.
- Out-of-range overlays are paused (no decoder churn on long timelines with many PiP segments)
- Verified live in browser; all 70 regression suites pass.
How this bug showed up in real edits
A simple way to understand the failure is to picture a timeline with one full-length background clip on the main track and a shorter talking-head clip placed as a PiP overlay in the corner from 00:12 to 00:20. Before this fix, pressing play could make the background move normally while the overlay appeared “loaded” but frozen on its first frame. The canvas was not broken, and the overlay file was not necessarily corrupt; it was faithfully drawing whatever frame the overlay element currently held. Because the main track was the only video being actively played and seeked, the PiP element never advanced with the rest of the composition. That is why the symptom felt misleading: users saw an image in the right position and size, so it looked like the overlay had been added correctly, but the moving part of the media pipeline had effectively stopped at frame zero for that layer.
This mattered even more during scrubbing and jump-seeks than during straight playback. In a layered editor, every visible video element has to agree on the same timeline moment or the composite becomes incoherent. If the user drags the playhead to 00:15, the expected result is not just “show the main clip at 15 seconds,” but “show every in-range layer at its corresponding source time for that same edit position.” Without that, the background might show a gesture mid-sentence while the PiP still shows the speaker before they have even started moving. The bug therefore created two kinds of mismatch at once: motion mismatch during play, and temporal mismatch after seeks. Fixing both code paths is what makes the behavior reliable in normal editing, because users constantly alternate between play, pause, scrub, jump, trim, and resume.
A practical check for anyone validating this in the browser is to use an overlay clip with obvious motion in its opening seconds rather than a near-static shot. A hand wave, a head turn, or a visible object entering frame will reveal sync problems immediately. Drop that clip onto the overlay track a few seconds after the main clip starts, seek to just before the overlay in-point, press play, then jump to the middle of the overlay range and back again. If the fix is working, the PiP should begin moving as soon as the timeline enters its active range, pause when it leaves that range, and display the correct frame after every seek without needing an extra play/pause cycle to “wake it up.” This kind of targeted test is more useful than using a static logo or a barely moving webcam shot, because those can hide a frozen decoder state and make a broken build look fine at a glance.
One common mistake when implementing layered playback is assuming the canvas draw loop is the source of truth. It is only the presentation layer. If the underlying HTMLVideoElement has not been played or seeked to the correct time, drawing more often does not solve anything; it only redraws the wrong frame more efficiently. Another frequent error is treating overlays as passive decorations instead of timeline participants. PiP clips may be smaller on screen, but they still need the same lifecycle handling as the main clip: activation when entering range, accurate seek alignment, and pausing when out of range. The out-of-range pause behavior is especially important on longer projects, because leaving many hidden overlays “live” can waste decode work even when they are not visible.
The 50ms drift gate also matters in day-to-day editing because it balances correctness with stability. In theory, an editor could seek every overlay on every render tick to force perfect alignment, but in practice that creates unnecessary churn and can introduce its own playback roughness. A small tolerance avoids hammering the media elements when they are already close enough to the current timeline position, while still correcting meaningful drift after a user seek or timing discontinuity. That makes the fix more than just “play all videos”: it acknowledges that multi-layer playback needs coordination rules, not just blanket commands. For editors working with several PiP segments across a long timeline, that distinction is what separates a fix that merely looks right in a short demo from one that stays responsive under real project conditions.
How do I get this update?
Open the editor and you have it. AetherCut runs in Chrome, Edge, Safari and Firefox. There is nothing to install, and you can edit without an account. Open the editor or see how it works.