Repository navigation
refactor(HikVision): remove generic MediaMTX WebRTC player - #1406
Conversation
Reviewer's GuideAPIRemove the public HikVisionWebRtc component and its code-behind, eliminating the HikVision package’s generic MediaMTX WebRTC player API.
UIRemove the WebRTC player’s localized UI strings along with the player itself.
ConfigurationUpdate the HikVision project configuration to remove its MediaMTX package dependency.
DocumentationRemove generic WebRTC player setup and deployment guidance from the HikVision README and skill, retaining documentation for the WebSDK plugin.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Linked issuesChecked at commit 49a7786 #1405 refactor(HikVision): remove generic WebRTC player from HikVision package · 2 of 3 met
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="src/components/BootstrapBlazor.HikVision/README.HikVision.md" line_range="3" />
<code_context>
# BootstrapBlazor.HikVision
-海康威视摄像机预览组件,包括通过 MediaMTX 播放页面预览的 `HikVisionWebRtc`,以及依赖海康 WebSDK 的 `HikVisionWebPlugin`。
+海康威视摄像机预览组件,包括依赖海康 WebSDK 的 `HikVisionWebPlugin`。
</code_context>
<issue_to_address>
**HikVision examples fail to compile**
When users follow the MediaMTX example or upgrade an application using `HikVisionWebRtc` to 11.0.4, `HikVisionWebRtc` is no longer included, so the documented Razor element and existing calls fail compilation; shipping that removal in 11.0.4 also breaks callers without a major-version signal.
Keep `HikVisionWebRtc` available in this release, or defer its removal to a major release after updating the integration guidance.
Also at `src/components/BootstrapBlazor.HikVision/skills/bb-hikvision/SKILL.md:8`, `src/components/BootstrapBlazor.HikVision/README.HikVision.md:25`.
</issue_to_address>
### Comment 2
<location path="src/components/BootstrapBlazor.HikVision/skills/bb-hikvision/SKILL.md" line_range="8" />
<code_context>
-- 自管网关公网部署需设置 `WebRtcPublicUrl`、`WebRtcConfigPath`,自行部署 YAML 片段并配置复制。HTTPS/nginx 负责播放页和信令,媒体另需可达的 UDP ICE 地址与端口;仅替换播放 URL 不够。
-- 同一用户的宿主可复用网关;指纹变化且目标进程路径相同时会自动重启,打断所有共享观看者。宿主退出后网关继续运行,动态路径在网关重启后需重新登记。
-- 网关不自动转码,视频、音频编码须兼容浏览器。音频可使用 G.711 μ-law(PCMU)或 A-law(PCMA);默认静音,需要时取消静音。
+先读 [references/llms.txt](references/llms.txt),再查 [HikVisionWebPlugin](references/components/HikVisionWebPlugin.txt)。以实际引用版本和源码为准,不编造参数。
## WebSDK 插件
</code_context>
<issue_to_address>
**Stale skill description**
The issue asks to keep the package documentation focused on HikVision-specific WebSDK components. The skill description still says it covers WebRTC preview APIs, although the updated reference directs users only to HikVisionWebPlugin.
</issue_to_address>| @@ -1,56 +1,11 @@ | |||
| # BootstrapBlazor.HikVision | |||
|
|
|||
| 海康威视摄像机预览组件,包括通过 MediaMTX 播放页面预览的 `HikVisionWebRtc`,以及依赖海康 WebSDK 的 `HikVisionWebPlugin`。 | |||
There was a problem hiding this comment.
🟠 High · HikVision examples fail to compile
When users follow the MediaMTX example or upgrade an application using HikVisionWebRtc to 11.0.4, HikVisionWebRtc is no longer included, so the documented Razor element and existing calls fail compilation; shipping that removal in 11.0.4 also breaks callers without a major-version signal.
Keep HikVisionWebRtc available in this release, or defer its removal to a major release after updating the integration guidance.
Also at src/components/BootstrapBlazor.HikVision/skills/bb-hikvision/SKILL.md:8, src/components/BootstrapBlazor.HikVision/README.HikVision.md:25.
Prompt for AI agents
In `src/components/BootstrapBlazor.HikVision/README.HikVision.md` at line 3:
**HikVision examples fail to compile**
When users follow the MediaMTX example or upgrade an application using `HikVisionWebRtc` to 11.0.4, `HikVisionWebRtc` is no longer included, so the documented Razor element and existing calls fail compilation; shipping that removal in 11.0.4 also breaks callers without a major-version signal.
Keep `HikVisionWebRtc` available in this release, or defer its removal to a major release after updating the integration guidance.
Also at `src/components/BootstrapBlazor.HikVision/skills/bb-hikvision/SKILL.md:8`, `src/components/BootstrapBlazor.HikVision/README.HikVision.md:25`.From AGENTS.md L23:
复用现有能力,保留用户的已有改动和公开 API 行为From docs/agents/component-checklist.md L5:
保留已有调用方式和所支持框架的行为| - 自管网关公网部署需设置 `WebRtcPublicUrl`、`WebRtcConfigPath`,自行部署 YAML 片段并配置复制。HTTPS/nginx 负责播放页和信令,媒体另需可达的 UDP ICE 地址与端口;仅替换播放 URL 不够。 | ||
| - 同一用户的宿主可复用网关;指纹变化且目标进程路径相同时会自动重启,打断所有共享观看者。宿主退出后网关继续运行,动态路径在网关重启后需重新登记。 | ||
| - 网关不自动转码,视频、音频编码须兼容浏览器。音频可使用 G.711 μ-law(PCMU)或 A-law(PCMA);默认静音,需要时取消静音。 | ||
| 先读 [references/llms.txt](references/llms.txt),再查 [HikVisionWebPlugin](references/components/HikVisionWebPlugin.txt)。以实际引用版本和源码为准,不编造参数。 |
There was a problem hiding this comment.
⚪ Low · Stale skill description
The issue asks to keep the package documentation focused on HikVision-specific WebSDK components. The skill description still says it covers WebRTC preview APIs, although the updated reference directs users only to HikVisionWebPlugin.
Prompt for AI agents
In `src/components/BootstrapBlazor.HikVision/skills/bb-hikvision/SKILL.md` at line 8:
**Stale skill description**
The issue asks to keep the package documentation focused on HikVision-specific WebSDK components. The skill description still says it covers WebRTC preview APIs, although the updated reference directs users only to HikVisionWebPlugin.From #1405:
Keep the package focused on HikVision-specific WebSDK components and documentation.
Link issues
fixes #1405
Summary By Copilot
HikVisionWebRtc、相关本地化资源和BootstrapBlazor.MediaMtx包引用。BootstrapBlazor.HikVision为海康威视 WebSDK 插件及海康专用模型。Regression?
Risk
此前存在的
HikVisionWebRtc公共 API 被移除,引用该组件的应用需要迁移到通用 MediaMTX 播放组件。海康 WebSDK 插件及现有参数行为未改动。Verification
实际执行了
dotnet build src/components/BootstrapBlazor.MediaMtx/BootstrapBlazor.MediaMtx.csproj -f net11.0 --no-restore和dotnet build src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj -f net11.0 --no-restore;两个项目均通过,0 警告 0 错误。Packaging changes reviewed?
已移除 HikVision 包对 MediaMTX 包的引用,并更新包文档和技能索引。
☑️ Self Check before Merge
Summary by Sourcery
Remove the generic MediaMTX WebRTC player from the HikVision package, retaining its HikVision WebSDK integration.
Enhancements:
HikVisionWebRtccomponent, leaving the HikVision package focused on the WebSDK plugin.Documentation:
Chores: