jim800121chen
adab000987
feat(camera): camera/media 推論改走 tunnel proxy(塊1,取代 501 stub)
推論工作區後端塊1:把 camera/media 9 條路徑從 501 stub 換成走
newProxyHandler 的 tunnel proxy 宣告(比照 devices.go 慣例,新增
camera.go 而非塞 stubs.go)。
- GET /camera/stream → streaming:true(MJPEG multipart 長連線逐 chunk flush)
- 其餘 8 條(camera list/start/stop、media upload×3、batch-images/:index、
seek)→ request-response(upload 大檔的 request body 由 proxy 直接
streaming 送出,streaming flag 只控 response)
- 掛在已套 AuthMiddleware 的 apiGroup 下,沿用剝 Origin 修正
WS inference:<deviceId> 結果推播為塊2(ForwardWebSocket);MJPEG <img>
的 stream 認證分支(R-C4)待 security 定案短期 stream-token 方案,本塊未做。
Reviewer 0C/0M/1Mi/3Sug 通過。+camera_test.go 路由黑箱測試(路徑不再
501、無 session 回 502 TUNNEL_DISCONNECTED),全套 api 回歸綠。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 04:36:06 +08:00
..
2026-05-01 11:21:20 +08:00
2026-07-09 04:36:06 +08:00
2026-05-01 11:21:20 +08:00
2026-05-01 11:21:20 +08:00
2026-07-09 04:36:06 +08:00
2026-07-09 04:36:06 +08:00
2026-05-01 11:21:20 +08:00
2026-05-16 18:56:01 +08:00
2026-05-16 19:16:28 +08:00
2026-05-01 11:21:20 +08:00
2026-06-20 18:28:04 +08:00
2026-06-20 18:28:04 +08:00
2026-06-21 06:36:35 +08:00
2026-06-21 06:36:35 +08:00
2026-06-20 18:28:04 +08:00
2026-06-20 18:28:04 +08:00
2026-06-20 18:28:04 +08:00
2026-05-01 11:21:20 +08:00
2026-05-01 11:21:20 +08:00
2026-06-27 06:18:05 +08:00
2026-06-28 07:38:25 +08:00
2026-06-28 07:38:25 +08:00
2026-06-28 07:38:25 +08:00
2026-06-27 03:18:59 +08:00
2026-06-27 03:18:59 +08:00
2026-06-21 06:36:35 +08:00
2026-06-21 06:36:35 +08:00
2026-06-21 06:36:35 +08:00
2026-05-01 11:21:20 +08:00
2026-06-21 06:36:35 +08:00
2026-06-28 07:38:25 +08:00
2026-07-09 04:27:49 +08:00
2026-07-09 04:27:49 +08:00
2026-06-21 06:36:35 +08:00
2026-05-01 11:21:20 +08:00
2026-07-09 04:36:06 +08:00
2026-05-01 11:21:20 +08:00
2026-06-20 18:28:04 +08:00
2026-06-20 18:28:04 +08:00
2026-06-20 18:28:04 +08:00