|
Some checks failed
tests / build (push) Failing after 3s
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>
|
||
|---|---|---|
| .. | ||
| about.go | ||
| avstream.go | ||
| command.go | ||
| config.go | ||
| doc.go | ||
| error.go | ||
| fs.go | ||
| graph.go | ||
| json.go | ||
| jwt.go | ||
| log.go | ||
| login.go | ||
| metadata.go | ||
| metrics.go | ||
| playout.go | ||
| probe.go | ||
| process.go | ||
| process_webrtc_test.go | ||
| progress.go | ||
| rtmp.go | ||
| session.go | ||
| skills.go | ||
| srt.go | ||
| widget.go | ||