feat: use MediaRecorder + canvas.captureStream() for MP4/WebM output

Recording now uses the browser's hardware video encoder:
- JPEG frames drawn to offscreen canvas → canvas.captureStream(30fps)
- MediaRecorder encodes to MP4 (preferred) or WebM (fallback)
- Stop triggers download of standard video file

Playback uses native <video> element — no custom parsing needed.
Massively simplified: removed packFrames/unpackFrames, no more custom
binary format.
This commit is contained in:
2026-08-01 20:29:32 +08:00
parent d2ecb1a4ed
commit 9cb9045f87
9 changed files with 176 additions and 260 deletions
+1
View File
File diff suppressed because one or more lines are too long