datarhei-dragonfork-core/http/api
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
..
about.go Add v16.7.2 2022-05-13 19:26:45 +02:00
avstream.go Add looping_runtime to avstream status 2023-05-05 12:03:48 +02:00
command.go Add v16.7.2 2022-05-13 19:26:45 +02:00
config.go Fix proper version handling for uploading a new config 2022-10-10 16:19:45 +02:00
doc.go Add v16.7.2 2022-05-13 19:26:45 +02:00
error.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
fs.go Add S3 storage support 2023-01-31 14:45:58 +01:00
graph.go Add v16.7.2 2022-05-13 19:26:45 +02:00
json.go Add v16.7.2 2022-05-13 19:26:45 +02:00
jwt.go 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
login.go Add v16.7.2 2022-05-13 19:26:45 +02:00
metadata.go Add v16.7.2 2022-05-13 19:26:45 +02:00
metrics.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
playout.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
probe.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
process.go fix(http/api): carry process WebRTC config through the API DTO 2026-05-03 04:53:25 +00:00
process_webrtc_test.go fix(http/api): carry process WebRTC config through the API DTO 2026-05-03 04:53:25 +00:00
progress.go Add support for input framerate data from jsonstats patch 2023-04-13 15:22:33 +02:00
rtmp.go Add v16.7.2 2022-05-13 19:26:45 +02:00
session.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
skills.go Add GoSRT & improvements (repo-merge) 2022-06-23 22:13:58 +02:00
srt.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00
widget.go Add format annotation for integer types for swagger documentation 2023-01-11 21:05:40 +01:00