datarhei-dragonfork-core/http
Zac Gaetano 83eaa28601 feat(webrtc): wire app/webrtc subsystem into Core lifecycle
Installs the WebRTC egress subsystem at Core boot when
cfg.WebRTC.Enable is true and the subsystem constructs cleanly:

- http.Config gains an optional WebRTC *appwebrtc.Handler field;
  server.setRoutesV3 mounts its WHEP routes on the JWT-protected
  /api/v3 group.
- api.start() constructs the Subsystem, registers its ProcessHooks
  with the restreamer, and builds a Handler. A construction failure
  is logged and Core continues without WebRTC — consistent with
  disabling the subsystem outright.
- api.stop() closes the Handler (tearing down active peers) before
  closing the Subsystem (releasing per-process UDP sockets), mirroring
  the RTMP/SRT teardown pattern.

Verified: go build ./... clean; go test ./app/webrtc/...
./core/webrtc/... ./restream/... ./http/... all pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-17 10:08:54 -04:00
..
api Add looping_runtime to avstream status 2023-05-05 12:03:48 +02: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