likaia / js-screen-shot

web端自定义截图插件(原生JS版)
https://www.kaisir.cn/js-screen-shot/
MIT License
808 stars 107 forks source link

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

Open sujie056520 opened 1 month ago

sujie056520 commented 1 month ago

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

likaia commented 1 month ago

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

likaia commented 3 weeks ago

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 commented 2 weeks ago

遇到了同样的问题

lyc3027069 commented 2 weeks ago

遇到了同样的问题 已解决 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