Commit Graph

3 Commits

Author SHA1 Message Date
SkyLiCoder 786230036b fix: use JPEG SOI/EOI marker scanning instead of multipart parsing
Recording now scans the fetch response for JPEG start-of-image (0xFFD8)
and end-of-image (0xFFD9) markers instead of parsing multipart boundaries.
This is more robust because:
- No dependency on boundary format quirks
- No crossOrigin attribute needed (no canvas tainting issues)
- JPEG SOI/EOI markers are reliable frame delimiters per the JPEG spec

Also added cancelRecording() cleanup at start of each new recording.
2026-08-01 16:48:44 +08:00
SkyLiCoder 88caa1e976 fix: use canvas capture for recording, remove cancel button
Recording now creates an offscreen <img> (browser-native MJPEG
decoding) and captures frames via canvas.toBlob() at 100ms intervals.
This replaces the broken fetch-based multipart parser.

- useRecorder: img+canvas capture instead of fetch+ReadableStream
- RecorderControls: removed Cancel button, only Record/Stop remain
- App.vue: removed cancel wiring
2026-08-01 16:20:48 +08:00
SkyLiCoder 386d8d5852 refactor: flatten project structure, remove ti2026h-web subdirectory 2026-08-01 16:08:44 +08:00