dragonflight/services/editor/INTEGRATION.md
Zac b68f0c6aba feat(editor): integrate openreel-video as services/editor with MAM hooks
Vendored Augani/openreel-video (MIT) into services/editor and wired it to the MAM. Editor runs as its own container on port 47435. Library assets pull in via ?asset=<uuid>; render exports route back via POST /api/v1/upload/simple. Sidebar Editor link on every page; Edit button on every preview modal. See services/editor/INTEGRATION.md for the patch map.
2026-05-17 21:44:37 -04:00

1.1 KiB

Z-AMPP <-> openreel-video integration

Vendored from https://github.com/Augani/openreel-video (MIT). The upstream .git directory was removed so this lives as plain source we can patch freely.

Files added (Z-AMPP-only, not upstream)

  • Dockerfile, nginx.conf, VENDOR.txt, INTEGRATION.md
  • apps/web/src/mam-bridge.ts: boot hook + pickFromMAM() modal
  • packages/core/src/export/mam-export-target.ts: helpers for upload-to-MAM

Upstream files patched

  • apps/web/package.json: build script changed tsc --noEmit && vite build -> vite build. Original preserved as build:strict. (upstream tsc fails on pre-existing WebGPU + import.meta errors.)
  • apps/web/src/bridges/media-bridge.ts: appended importFromURL(url, name, contentType?) as the last method of the MediaBridge class.
  • apps/web/src/main.tsx: appended import "./mam-bridge"; so the bridge boot hook runs.

Query params honored

  • ?asset= auto-imports that asset on load.
  • ?project= stored in localStorage.mamProjectId for save-to-MAM.

Ports

Container exposes 80; compose maps ${PORT_EDITOR:-47435}:80.