Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enableWebRtc模式,使用当前标签页进行截图会变模糊 #165

Open
sujie056520 opened this issue Sep 12, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@sujie056520
Copy link

Version of js-screen-shot

1.9.9

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

image
1726111365681

报错信息

No response

@sujie056520 sujie056520 added the bug Something isn't working label Sep 12, 2024
@likaia
Copy link
Owner

likaia commented Sep 12, 2024

Hello @sujie056520. Your feedback has been received, and you will be notified in the issue area when the problem is resolved.
你好 @sujie056520,已收到你反馈的问题,问题解决后将在issue区域通知你。

@likaia
Copy link
Owner

likaia commented Oct 16, 2024

Version of js-screen-shot

1.9.9

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

image 1726111365681

报错信息

No response

应该不会吧,我测试了没问题呀😂,你用最新的rc试试?

@lyc3027069
Copy link

遇到了同样的问题

@lyc3027069
Copy link

lyc3027069 commented Oct 23, 2024

遇到了同样的问题
已解决
video: {
mandatory: {
chromeMediaSource: "desktop",
chromeMediaSourceId: source.id,
minWidth: size.width,
maxWidth: size.width,
minHeight: size.height,
maxHeight: size.height,
},
},
指定宽高可以是图片高清,宽度需要这样获取
const { size, scaleFactor } = screen.getPrimaryDisplay();
return {
width: size.width * scaleFactor,
height: size.height * scaleFactor
}
scaleFactor屏幕的缩放因子,高清屏幕的这个值会大于1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants