Skip to content

feat(MediaMtx): reuse gateway process across hosts - #1392

Merged
ArgoZhang merged 4 commits into
masterfrom
feat-mediamtx
Dec 2, 2026
Merged

ArgoZhang merged 4 commits into
masterfrom
feat-mediamtx

Conversation

@ArgoZhang

Copy link
Copy Markdown
Member

Link issues

fixes #1366

Summary By Copilot

  • Add same-user MediaMTX process reuse across hosts, coordinated by a file lock and verified using process identity, configuration fingerprint, and authenticated Control API readiness.
  • Add UseExternalGateway mode so applications can connect to an independently managed local gateway; re-register configured cameras after detecting gateway restarts.
  • Clarify static and dynamic camera path registration, process ownership, persistence, and recovery in the package README and bundled skill.
  • Bump the BootstrapBlazor.MediaMtx package version to 11.0.2.

Regression?

  • Yes
  • No

The default remains self-managed. Process reuse and external-gateway behavior are additive; the shared gateway intentionally remains running when a host releases its process handle.

Risk

  • High
  • Medium
  • Low

The change adds cross-process coordination and persists gateway identity and API credentials in a current-user-protected local directory. Configuration mismatches fail without stopping an existing gateway; deployment and lifecycle behavior are documented.

Verification

  • Manual (required)

  • Automated

  • dotnet build src/components/BootstrapBlazor.MediaMtx --no-restore — passed for net6.0 through net11.0 (0 warnings, 0 errors).

  • git diff --check — passed.

  • No dedicated MediaMTX test project was found; manual multi-host/runtime validation was not performed.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Reviewed the component package version, API options, README, and bundled skill documentation.

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

The package README and bundled skill are updated. No demo change is required for this service-level change. The branch includes the latest origin/master.

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Sorry @ArgoZhang, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 23 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@bb-auto bb-auto Bot added the enhancement New feature or request label Dec 2, 2026
@bb-auto bb-auto Bot added this to the v11.0.0 milestone Dec 2, 2026

@bb-auto bb-auto Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved by bb-auto

@ArgoZhang
ArgoZhang merged commit 9644fba into master Dec 2, 2026
3 checks passed
@ArgoZhang
ArgoZhang deleted the feat-mediamtx branch December 2, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(MediaMtx): add runtime RTSP camera management

1 participant