Skip to content

Integrate additional MediaMTX API endpoints#31

Merged
tomtom215 merged 2 commits into
mainfrom
claude/mediamtx-api-integration-YytjD
Dec 19, 2025
Merged

Integrate additional MediaMTX API endpoints#31
tomtom215 merged 2 commits into
mainfrom
claude/mediamtx-api-integration-YytjD

Conversation

@tomtom215
Copy link
Copy Markdown
Owner

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.

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
@tomtom215 tomtom215 merged commit 32cfd8d into main Dec 19, 2025
7 checks passed
@tomtom215 tomtom215 deleted the claude/mediamtx-api-integration-YytjD branch April 6, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants