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.
20 lines
1.1 KiB
Markdown
20 lines
1.1 KiB
Markdown
# 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=<uuid> auto-imports that asset on load.
|
|
- ?project=<uuid> stored in localStorage.mamProjectId for save-to-MAM.
|
|
|
|
## Ports
|
|
Container exposes 80; compose maps ${PORT_EDITOR:-47435}:80.
|