mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 21:17:42 +00:00
Extend the backend-free video-player harness with the app's real comment↔player wiring (onTimeUpdate capture, player.currentTime(second) seek on comment click, and a remount to simulate a second user) and add a Playwright spec. User A comments on 5 distinct random frames (regenerated each run); user B reloads and clicks each comment. Asserts the seconds-based roundtrip is loss-free: frameA -> second=frameA/fps -> seek(second) -> floor(second*fps+0.45) == frameA, so the comment is stored at the frame the author saw and the reader lands on that exact frame.