Skip to content

feat(MediaMtx): restructure options and remove WebRTC YAML dependency - #1402

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

ArgoZhang merged 2 commits into
masterfrom
feat-mediamtx

Conversation

@ArgoZhang

Copy link
Copy Markdown
Member

Link issues

fixes #1401

Summary By Copilot

  • Replace the WebRtcConfigPath YAML fragment with strongly typed WebRtc:Ice options (Address, Port, IpsFromInterfaces, AdditionalHosts) and validate the ICE address, port and hosts in code before starting the managed gateway.
  • Restructure MediaMtxOptions into Gateway (Port, Password, UseExternalGateway, ExternalUserName, ExternalPassword, MediaMtxPath) and WebRtc (Port, PublicUrl, Ice) sections; update gateway startup, process reuse locking, port pre-checks and player URL generation to use the new layout.
  • Update the MediaMTX README and bundled bb-mediamtx skill with the new option keys, public WebRTC deployment guidance and troubleshooting notes; bump the package version to 11.0.4.

Regression?

  • Yes
  • No

Since 11.0.4, the configuration keys changed: ApiPort, ApiPassword, WebRtcPort, WebRtcIcePort, WebRtcPublicUrl, MediaMtxPath, UseExternalGateway, ExternalApiUserName and ExternalApiPassword move under Gateway / WebRtc, and WebRtcConfigPath is removed. Existing deployments must migrate their configuration; hosts sharing a running gateway must migrate together because reuse is keyed by Gateway:Port and the generated configuration.

Risk

  • High
  • Medium
  • Low

The change renames public configuration keys and removes the YAML fragment input, which affects managed gateway startup and shared process configuration. Validation now fails fast on invalid ICE settings, while the generated MediaMTX configuration behavior is otherwise preserved.

Verification

  • Manual (required)

  • Automated

  • git status --porcelain — clean working tree.

  • git ls-remote origin refs/heads/feat-mediamtx — remote HEAD matches local HEAD (f1cb3014a).

  • git log / git diff --stat origin/master...HEAD — branch contains the latest origin/master and only the MediaMtx package, service, README and skill changes.

  • gh pr list --head feat-mediamtx --state open — no existing open PR.

  • No build, test or manual runtime verification was run by this Issue/PR workflow.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Reviewed the package version bump to 11.0.4, the options API metadata, README and bundled bb-mediamtx skill updates.

☑️ 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 needed for this service/configuration change, and the branch includes the latest origin/master.

@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 23 hours and 25 minutes 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 3, 2026
@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 56108a5 into master Dec 3, 2026
3 checks passed
@ArgoZhang
ArgoZhang deleted the feat-mediamtx branch December 3, 2026 03:52
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): simplify configuration and remove WebRTC YAML dependency

1 participant