Files
openmotion/docs
open-design-crew[bot] 6ffa668092 feat(studio): support browser export under isolated preview origin (#954)
* feat(studio): support browser export under isolated preview origin

Run client-side browser export inside a hidden cookie-less preview iframe mounted on PREVIEW_PUBLIC_ORIGIN so deployments with preview isolation can export MP4/WebM without relaxing origin isolation.

- Build a standalone lazy-loaded runner bundle (studio/build/preview-browser-export.js) during build:studio and serve it read-only at /api/vendor/browser-export.js with ETag/no-cache on the isolated preview origin.
- Extend preview-bridge with origin-checked browser-export-start / browser-export-cancel handlers and progress / Transferable ArrayBuffer responses.
- Keep original media fetches authenticated inside isolated preview documents via active ~assets/<lease>/ bases (or ?pt=) + ?original=1 and downgrade snapdom preview fetch credentials for S3 302 redirects.
- Gate RenderQueue and useRenderQueue on configured openmotion-preview-origin while continuing to reject opaque sandboxes and unrecognized cross-origin frames, and sanitize returned MIME types strictly to video/mp4 or video/webm.

* fix(studio): harden isolated preview browser export bridge validation

* docs(architecture): document isolated preview browser export bundle

* fix(studio): size isolated export frame from authored dimensions and add stall watchdog

---------

Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-24 15:49:03 +08:00
..

OpenMotion 文档

这里维护公开的使用说明、技术契约和可复现检查。每次变更时整体审视 产品架构,判断定位、核心流程、模块职责、依赖、数据与接口边界、当前能力和限制是否仍准确一致;仅在需要时更新,并按需调整相关说明。架构仍准确时保持文档不变,不要求每次提交或 PR 修改文档或新增需求记录。不将个人环境、客户资料、内部讨论或商业研究写入公开文档。

阅读入口

分发与验证

npm、插件 ZIP 和完整 ZIP 共用 scripts/distribution.ts 的文件清单,文档必须逐项批准;源码仓库的存在不表示应当随包发送。运行时必须保留 Skill 引用、MCP 契约和许可证。工程、用户配置、凭据、构建日志与验收媒体留在包外。

使用项目自身的确定性检查,按变化运行相应类型检查、单测与真实环境验收。区分本地通过、CI 通过、目标机安装、宿主加载、模型创作和人工视觉验收,不将一种证据替代另一种。

  • Generation options: shared model-specific controls, parameter types and resizable asset panes.