Skip to content

desktop: native .mov preview via AVPlayerView overlay #140

Description

@RichardBray

Sub-issue of #133. Most technically novel piece.

Why

WKWebView's HTML5

Approach

  • Small native module (Zig/Obj-C, following Electrobun's native-binding pattern, e.g. https://github.com/mayfer/electrobun-macos-native-blur) that creates an AVPlayerView (AVKit) as a sibling NSView.
  • Position/size synced to a placeholder element in the WKWebView layout (overlay pattern, same technique used in Tauri apps embedding native content).
  • Manual z-order/hit-testing handling since this isn't a first-class Electrobun API.

Fallback considered (not chosen)

FFmpeg-generated low-res H.264 proxy preview - rejected as primary approach since it doesn't meet "avoid transcoding" and native overlay is a proven pattern.

Out of scope

  • FFmpeg still runs for actual effects/export, this issue is playback preview only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — soon, not urgent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions