Integrate additional MediaMTX API endpoints#31
Merged
Conversation
Add comprehensive REST API integration covering all MediaMTX v1.15.5 endpoints without any breaking changes to existing functionality. Stream Manager (v1.4.3): - Generic API call wrapper with proper HTTP status handling - Instance info endpoint (/v3/info) for version and uptime - Global and path defaults configuration management - Dynamic path CRUD (add/delete/patch/replace) without restart - RTSP/RTSPS connection and session management with kick support - RTMP/RTMPS connection management with disconnect capability - SRT connection management - WebRTC session management - HLS muxer monitoring - Recording management and segment deletion - JWT JWKS credential refresh - Utility functions for connection counting and health checks Metrics Exporter (v1.1.0): - MediaMTX version and uptime from /v3/info - RTSP session and connection counts - RTSPS (secure) session counts - RTMP/RTMPS connection counts - WebRTC session counts - SRT connection counts - HLS muxer counts - Recording counts - Total connections across all protocols All new functions are additive - no existing behavior is modified.
Functions with optional pagination parameters (itemsPerPage, page) that have sensible defaults are called without arguments in utility functions. Added SC2120 disable directives to suppress warnings about unused parameters since they are intentionally optional. Affected functions: - mediamtx_list_paths - mediamtx_list_rtsp_sessions - mediamtx_list_rtsps_sessions - mediamtx_list_rtmp_conns - mediamtx_list_srt_conns - mediamtx_list_webrtc_sessions
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.
Add comprehensive REST API integration covering all MediaMTX v1.15.5 endpoints without any breaking changes to existing functionality.
Stream Manager (v1.4.3):
Metrics Exporter (v1.1.0):
All new functions are additive - no existing behavior is modified.