This repository was archived by the owner on Jun 4, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
决策
P0 录制包优先保存到浏览器 IndexedDB,并提供本地回放中心;当 IndexedDB quota 不足或写入失败时,必须提供
code-tape-recording.zip文件导出作为兜底。云端上传、分享链接和权限控制放入 P1。备选方案
理由
IndexedDB 能保存结构化事件、快照和媒体 Blob,足以支撑 P0 “录制 -> 保存 -> 加载 -> 回放”闭环。最新方案要求保存前用
navigator.storage.estimate()预检容量,并把文件导出从可选增强提升为 quota/写入失败兜底路径。影响
P0 保存流程需要两阶段提交:先写
draftmanifest,再写 JSON 和 media Blob,校验通过后切为complete。导入时必须校验 manifest、schemaVersion 和 checksum;媒体缺失不阻断纯事件流回放。All reactions