Skip to content

4.5.7

Choose a tag to compare

@superuser404notfound superuser404notfound released this 27 Jun 05:03

Fixed

macOS: video image stays centered during live window resize (#80)

On macOS, dragging a window corner or edge made the video image slide off-center for the duration of the drag, snapping back centered once the drag ended.

The hosted video CALayer was added as a sublayer with no autoresizing mask, so its frame only caught up on the next layout() pass, a frame behind the continuously-changing view bounds during the drag. Because an NSView's backing layer is anchored bottom-left, that one-pass lag read as the image drifting off-center while resizing.

The layer now gets a flexible autoresizing mask ([.layerWidthSizable, .layerHeightSizable]) in the AppKit branch of AetherPlayerView, so Core Animation stretches it in lockstep with the superlayer's bounds on every frame. Initialized to full bounds, it starts and stays full-bounds (and centered) throughout the resize.

This is a pure rendering/layout fix inside the AppKit-only branch: iOS/tvOS are untouched, and there is no effect on decode, timing, or audio.

Reported by @reckloon from a downstream consumer (Ocelot).

Full diff: 4.5.6...4.5.7