datarhei-dragonfork-core/http
Zac Gaetano f6d36bfa66
Some checks failed
tests / build (push) Failing after 3s
fix(http/api): carry process WebRTC config through the API DTO
ProcessConfig in http/api/process.go shipped without a WebRTC field, so
JSON arriving at POST /api/v3/process was silently stripped of
"webrtc":{"enabled":true}. Marshal() handed restream a zero
ConfigWebRTC, the OnProcessStart hook no-op'd, and every WHEP request
returned 404 — even with a running webrtc-enabled process.

Caught on the M2 TrueNAS deploy at acceptance time: GET /process/{id}/config
came back without the webrtc block, despite the inbound JSON having it.
This is the API-layer twin of the earlier 'fix(config): preserve WebRTC
section in Config.Clone()' — same class of bug (drop-on-copy), different
struct.

- Add ProcessConfigWebRTC mirroring app.ConfigWebRTC.
- Marshal: copy DTO -> app.Config.WebRTC.
- Unmarshal: copy app.Config.WebRTC -> DTO.
- Regression tests cover both the JSON->DTO->Config path and the
  default (no webrtc block) case.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 04:53:25 +00:00
..
api fix(http/api): carry process WebRTC config through the API DTO 2026-05-03 04:53:25 +00:00
cache Add cache block list for extensions not to cache 2022-08-02 19:10:28 +02:00
cors Add v16.7.2 2022-05-13 19:26:45 +02:00
errorhandler Add GoSRT & improvements (repo-merge) 2022-06-23 22:13:58 +02:00
fs Add S3 storage support 2023-01-31 14:45:58 +01:00
graph Update dependencies 2023-09-04 16:36:53 +02:00
handler Create empty session registry if none is provided 2024-04-05 16:01:19 +02:00
jwt Update dependencies 2023-09-04 16:36:53 +02:00
middleware Skip handling if session collectors are nil 2024-04-05 15:59:47 +02:00
mock Use abstract filesystem for stores 2023-02-01 16:09:20 +01:00
router Add v16.7.2 2022-05-13 19:26:45 +02:00
validator Add v16.7.2 2022-05-13 19:26:45 +02:00
log.go Add v16.7.2 2022-05-13 19:26:45 +02:00
server.go feat(webrtc): wire app/webrtc subsystem into Core lifecycle 2026-04-17 10:08:54 -04:00