Skip to content

feat(MediaMtx): support external gateway and public WebRTC configuration - #1399

Merged
ArgoZhang merged 5 commits into
masterfrom
feat-mediamtx
Dec 3, 2026
Merged

ArgoZhang merged 5 commits into
masterfrom
feat-mediamtx

Conversation

@ArgoZhang

Copy link
Copy Markdown
Member

Link issues

fixes #1398

Summary By Copilot

  • Add UseExternalGateway mode to connect to an independently managed local MediaMTX gateway and re-register configured cameras after detecting gateway restarts.
  • Require an explicit ApiPassword for the managed gateway and stop persisting the API password in shared gateway state.
  • Add WebRtcConfigPath support for the documented ICE listener, interface discovery, and additional-host settings; validate the listener endpoint and generate the corresponding MediaMTX configuration.
  • Restart a recorded gateway when its configuration changes and its executable path matches the requested executable; reject a differing executable path.
  • Update the MediaMTX README and bundled skills with external gateway, public WebRTC, deployment, and security guidance; bump the package version to 11.0.3.

Regression?

  • Yes
  • No

Since 11.0.2, managed mode no longer starts without MediaMtxOptions:ApiPassword. Existing deployments must configure this secret; an old gateway left running across upgrade may need to be stopped manually before the new configured password can be used.

Risk

  • High
  • Medium
  • Low

The change affects managed gateway startup requirements and shared process configuration. A configuration mismatch can restart a gateway used by other hosts, while a changed API password does not itself trigger a restart; both behaviors and the required secret are documented.

Verification

  • Manual (required)

  • Automated

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

  • git diff --check origin/master...HEAD — passed.

  • No dedicated MediaMTx test project was found; tests and manual runtime validation were not run.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Reviewed the component package version, options/API metadata, README, and bundled skills.

☑️ 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 skills are updated. No demo change is needed for this service/configuration change. The branch includes the latest origin/master.

@bb-auto bb-auto Bot added the enhancement New feature or request label Dec 3, 2026
@sourcery-ai

sourcery-ai Bot commented Dec 3, 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 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@bb-auto bb-auto Bot added this to the v11.0.0 milestone Dec 3, 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 99e9080 into master Dec 3, 2026
3 checks passed
@ArgoZhang
ArgoZhang deleted the feat-mediamtx branch December 3, 2026 01:16
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): support external gateways and public WebRTC configuration

1 participant