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> |
||
|---|---|---|
| .. | ||
| api | ||
| ffmigrate | ||
| import | ||
| webrtc | ||
| version.go | ||