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 · 20 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

@zhangyan1991
Copy link

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

@lyc3027069 这个方案如何结合SDK使用

@likaia
Copy link
Owner

likaia commented Feb 11, 2025

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

OK 我调整下插件内部源码

@likaia
Copy link
Owner

likaia commented Feb 11, 2025

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

@lyc3027069 这个方案如何结合SDK使用

我来改

@likaia
Copy link
Owner

likaia commented Feb 11, 2025

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

你这个是在electron环境下用的吧?

@likaia
Copy link
Owner

likaia commented Feb 11, 2025

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

@lyc3027069 这个方案如何结合SDK使用

你这个是在electron环境下用的吧?

@zhangyan1991
Copy link

zhangyan1991 commented Feb 11, 2025

@likaia 我在windows上试了模糊,Mac上清晰。

他这个方案看着确实是 Electron 上的,不过模糊问题确实存在

@likaia
Copy link
Owner

likaia commented Feb 11, 2025

@likaia 我在windows上试了模糊,Mac上清晰。

他这个方案看着确实是 Electron 上的,不过模糊问题确实存在

奥奥 原来是windows模糊,我一直是mac测试的,很清晰,win上的话,我得研究下

@likaia
Copy link
Owner

likaia commented Feb 12, 2025

@likaia 我在windows上试了模糊,Mac上清晰。

他这个方案看着确实是 Electron 上的,不过模糊问题确实存在

我在win上也试了,没发现这个问题

@Lily-gittee
Copy link

windows遇到同样的问题,vue3

@Lily-gittee
Copy link

设置wrcWindowMode后解决模糊的问题,但是如您在readme中写到:用户授权时会出现其他的应用程序选项,用户体验会差一些。

@likaia
Copy link
Owner

likaia commented Feb 18, 2025

设置wrcWindowMode后解决模糊的问题,但是如您在readme中写到:用户授权时会出现其他的应用程序选项,用户体验会差一些。

奇怪了,我一直无法复现,你是windows接的高分屏吗?

@Lily-gittee
Copy link

Lily-gittee commented Feb 18, 2025 via email

@likaia
Copy link
Owner

likaia commented Feb 18, 2025

是的,自带屏幕没问题。拓展屏会出现这个问题,只有1980*1080。

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2025年2月18日(星期二) 下午3:18
收件人: @.
>;
抄送: @.>; @.>;
主题: Re: [likaia/js-screen-shot] enableWebRtc模式,使用当前标签页进行截图会变模糊 (Issue #165)

设置wrcWindowMode后解决模糊的问题,但是如您在readme中写到:用户授权时会出现其他的应用程序选项,用户体验会差一些。

奇怪了,我一直无法复现,你是windows接的高分屏吗?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>
likaia left a comment (likaia/js-screen-shot#165)

设置wrcWindowMode后解决模糊的问题,但是如您在readme中写到:用户授权时会出现其他的应用程序选项,用户体验会差一些。

奇怪了,我一直无法复现,你是windows接的高分屏吗?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

我今晚接个高分屏试试

@Lily-gittee
Copy link

Lily-gittee commented Feb 18, 2025 via email

@zhangyan1991
Copy link

@likaia 我反馈的是我们的客服人员使用台式机外机显示器场景

可能分辨率不高,通常使用QQ截图能还原原始清晰度,使用此SDK截图就会模糊

@likaia
Copy link
Owner

likaia commented Feb 24, 2025

谢谢

@likaia 我反馈的是我们的客服人员使用台式机外机显示器场景

可能分辨率不高,通常使用QQ截图能还原原始清晰度,使用此SDK截图就会模糊

你们方便加我个微信吗?我这里始终复现不了。
我的微信号:Baymax-kt

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

5 participants