Skip to content

fix(asr-settings): 检查mediaDevices API是否可用#149

Open
yy991207 wants to merge 2 commits intoTHU-MAIC:mainfrom
yy991207:yang
Open

fix(asr-settings): 检查mediaDevices API是否可用#149
yy991207 wants to merge 2 commits intoTHU-MAIC:mainfrom
yy991207:yang

Conversation

@yy991207
Copy link

在开始录音前添加对mediaDevices API的可用性检查,避免在不支持的环境下报错

添加getViewBoxDims工具函数统一处理不同格式的viewBox
修复当viewBox为字符串或无效值时元素缩放计算问题
确保在生成、导出和渲染时viewBox格式一致
在开始录音前添加对mediaDevices API的可用性检查,避免在不支持的环境下报错
@wyuc
Copy link
Contributor

wyuc commented Mar 23, 2026

Thanks for the contribution. Before we review the code, could you:

  1. Open issue(s) describing the bugs this PR fixes (mediaDevices crash and viewBox division error), with reproduction steps if possible.
  2. Fill out the PR description template so reviewers have context on the problem and verification steps.

Once that's in place we can move forward with the code review.

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.

2 participants