Add push targets feature to rebroadcast a path#5558
Open
aniolpages wants to merge 10 commits intobluenviron:mainfrom
Open
Add push targets feature to rebroadcast a path#5558aniolpages wants to merge 10 commits intobluenviron:mainfrom
aniolpages wants to merge 10 commits intobluenviron:mainfrom
Conversation
Member
|
This, if correctly implemented, would fix #4273 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5558 +/- ##
==========================================
- Coverage 60.87% 58.38% -2.49%
==========================================
Files 200 204 +4
Lines 16865 17931 +1066
==========================================
+ Hits 10266 10469 +203
- Misses 5727 6563 +836
- Partials 872 899 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds push targets to paths.
A push target allows MediaMTX to republish a path to an external destination, with runtime status exposed through the API. Push targets can be defined statically in path configuration and can also be managed dynamically through new API endpoints.
Supported target protocols:
Path-level push target support
Added a new pushTargets path option.
This allows configuring one or more outbound destinations directly in a path configuration, for example:
At startup, configured targets are created automatically and tied to the path.
Runtime API for push targets
Added new API endpoints to list, inspect, add, and remove push targets for a path:
GET /v3/paths/pushtargets/list/pathName
GET /v3/paths/pushtargets/get/pathName/targetId
POST /v3/paths/pushtargets/add/pathName
{ "url":"rtsp://example.com/stream" }DELETE /v3/paths/pushtargets/remove/pathname/targetId