热修 round11:视频加载卡死/播放被吞修复 + 字幕放宽至已领取任务(线上已部署 7959839c) #41

Merged
zhanghongming merged 1 commits from release/fanyu into dev 2026-10-12 18:21:01 +08:00
Collaborator

内容(单提交 7959839c,纯前端 4 源文件 + 1 测试,Go 零改动)

  1. 视频「加载中」卡死 + 加载中点播放无反应:seek 队列 settle 纯事件驱动,movi 事件在 dispatch 前发完/同位目标无原生 seek → 队列永挂(定位中不消失),play() 被 queue.isPending() 拦截(video.play() 从未调用);用户拖动时间轴才触发 seeked 解锁。修复:200ms 就绪轮询 + play() 先尝试结算。
  2. 字幕画面叠加层线上从未渲染:movi-player 0.4.1 host videoWidth/videoHeight 恒 0 且 shadow
  3. 字幕可见性放宽:任务已领取(任何人领取)→ 审核/验收/切片质检工作台对任何查看者显示画面字幕+侧板(专注/普通布局均生效);审核写权限门槛不变。

验证

  • 本地全链路(真实 BOS 视频 + Edge 无头)修复前后对照:卡死复现 → 加载中点播放 1.5s 内 playing、定位中自动消失;管理员看他人领取任务字幕叠加+侧板渲染;专注模式通过
  • tsc 0 错;全量前端 635/649 = 基线(14 失败为既有文案债);新增 4 回归测试
  • 已部署线上(镜像 83f30d4a,容器内修复标记核对 + 0 panic/0 5xx),发布记录 video-stall-captions-round11-20261012

回滚:patch 回 round10 镜像 f1f86bfe。

## 内容(单提交 7959839c,纯前端 4 源文件 + 1 测试,Go 零改动) 1. **视频「加载中」卡死 + 加载中点播放无反应**:seek 队列 settle 纯事件驱动,movi 事件在 dispatch 前发完/同位目标无原生 seek → 队列永挂(定位中不消失),play() 被 queue.isPending() 拦截(video.play() 从未调用);用户拖动时间轴才触发 seeked 解锁。修复:200ms 就绪轮询 + play() 先尝试结算。 2. **字幕画面叠加层线上从未渲染**:movi-player 0.4.1 host videoWidth/videoHeight 恒 0 且 shadow <video> 异步创建晚于首个 canplay → 测量永久自我隐藏(dev 原生 video 回退掩盖了此 bug)。修复:从 shadow video 取真实尺寸 + 有界重试。 3. **字幕可见性放宽**:任务已领取(任何人领取)→ 审核/验收/切片质检工作台对任何查看者显示画面字幕+侧板(专注/普通布局均生效);审核写权限门槛不变。 ## 验证 - 本地全链路(真实 BOS 视频 + Edge 无头)修复前后对照:卡死复现 → 加载中点播放 1.5s 内 playing、定位中自动消失;管理员看他人领取任务字幕叠加+侧板渲染;专注模式通过 - tsc 0 错;全量前端 635/649 = 基线(14 失败为既有文案债);新增 4 回归测试 - 已部署线上(镜像 83f30d4a,容器内修复标记核对 + 0 panic/0 5xx),发布记录 video-stall-captions-round11-20261012 回滚:patch 回 round10 镜像 f1f86bfe。
zhanghongming added 1 commit 2026-10-12 18:20:55 +08:00
Three production video/caption fixes (root causes reproduced with Edge
headless against the real BOS pipeline):

- Transport stall: seek settlement was purely event-driven, but movi can
  fire loadedmetadata/canplay before the initial target dispatches, and a
  target equal to currentTime issues no native seek — so nothing re-ran
  settle(), the queue stayed pending forever (定位中 stuck), and play()
  was swallowed until a manual timeline drag. A 200ms readiness poll now
  closes the gap, and play() attempts settlement before deferring.
- Caption overlay never rendered in production: movi-player 0.4.1 leaves
  host videoWidth/videoHeight at 0 and builds its shadow <video>
  asynchronously after the host's first canplay, so overlay measurement
  hid itself permanently (dev's native-video fallback masked this).
  Measure intrinsic size from the shadow video with bounded retries.
- Caption visibility: overlays and the side panel now render for any
  CLAIMED task in the review workbenches regardless of viewer identity,
  pool tab, task status, or layout (专注/普通); review write controls
  stay behind the reviewer-identity gate.
zhanghongming merged commit 8c1e86a7e6 into dev 2026-10-12 18:21:01 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: longtao.wu/droboticflow#41
No description provided.