Skip to content

Feat: Sync Streams from Mediamtx to TAK Server#160

Draft
secypher wants to merge 1 commit into
mainfrom
feat/sync-streams-mediamtx-to-tak-server
Draft

Feat: Sync Streams from Mediamtx to TAK Server#160
secypher wants to merge 1 commit into
mainfrom
feat/sync-streams-mediamtx-to-tak-server

Conversation

@secypher

Copy link
Copy Markdown

User-facing summary

  • Added product interop authorization brokering for integrations
  • Products can now request connection auth details for another product through the API
  • Supports multiple auth types: mTLS, bearer token, and basic auth with optional read-only streaming credentials

Why It's Good for the Product (Release Goal)

  • Makes cross-product stream integration easier to set up and automate
  • Enables MediaMTX-to-TAK style integrations without manual credential handling
  • Standardizes how products discover and receive integration auth details

Any Other You'd Like to Mention

  • Implemented as a new /api/v1/product/interop/{tgtproduct}/authz endpoint
  • Adds request/response schemas for interop auth metadata exchanged between product

@secypher

secypher commented May 23, 2026

Copy link
Copy Markdown
Author

DRAFT PR, Work in progress

What it does well

  • Automatic polling exists: tak-rmapi adds a background sync loop with STREAM_SYNC_INTERVAL defaulting to 60.0.
  • End-to-end flow exists:
  1. tak-rmapi ensures interop via RM
  2. fetches MTX auth from RM
  3. calls MTX /interop/streams
  4. diffs desired vs existing TAK video connections
  5. creates/updates/deletes managed TAK entries
  • Active streams only: MTX side filters to ready/sourceReady.
  • Automatic cleanup exists: stale TAK entries created by this sync worker are removed.

#160
pvarki/python-tak-rmapi#134
pvarki/python-mediamtx-rmmtxauthz#54

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.

1 participant