datarhei-dragonfork-core/http/api
Zac Gaetano 49677fbd3d
Some checks failed
tests / build (push) Failing after 2s
tests / build (pull_request) Failing after 1s
fix(webrtc): make WebRTC FFmpeg stream maps configurable (closes #2)
BuildArgs hardcoded -map 0✌️0 / -map 0🅰️0 for the two RTP legs.
Correct for production RTMP/SRT publishers (single combined input),
but breaks any process whose audio lives on a different input index
— multi-input lavfi test scaffolds, multi-camera pipelines, SDI +
file-audio mixes, etc.

Adds VideoMap and AudioMap fields to ConfigWebRTC (and the API DTO),
defaulting to the prior literals so existing deployments are
unaffected. BuildArgs reads them.

Tests:
- TestBuildArgs_DefaultMaps locks the empty-string default behavior
- TestBuildArgs_CustomMaps drives the multi-input override path
- TestProcessConfigWebRTCMapsRoundtrip extends the DTO roundtrip

Closes #2.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 12:10:51 +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(webrtc): make WebRTC FFmpeg stream maps configurable (closes #2) 2026-05-03 12:10:51 +00:00
process_webrtc_test.go fix(webrtc): make WebRTC FFmpeg stream maps configurable (closes #2) 2026-05-03 12:10:51 +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