如何使用 getDisplayMedia api 设置高清屏幕录制?
我使用 getDisplayMedia() API 创建了一个屏幕录像机应用程序,但输出视频质量不好,有什么方法可以配置输出视频质量以获得高清分辨率视频?
我有一个类似的问题 -> https://groups.google.com/g/discuss-webrtc/c /-KC3xg4MEp4 但解决方案不可用
var constraints = {
audio: false,
video: {
width: { ideal: 720, max: 1920 },
height: { ideal: 1024, max: 1080 }
}
}
video_stream = await navigator.mediaDevices.getDisplayMedia(constraints);
I have created a screen recorder application using getDisplayMedia() API but the output video quality is not good, is there any way to configure the output video quality to get HD resolution video?
I got a similar kind of question -> https://groups.google.com/g/discuss-webrtc/c/-KC3xg4MEp4 but solution is not available
var constraints = {
audio: false,
video: {
width: { ideal: 720, max: 1920 },
height: { ideal: 1024, max: 1080 }
}
}
video_stream = await navigator.mediaDevices.getDisplayMedia(constraints);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了答案,为了设置良好的分辨率,只需更新约束,输出视频质量就会更好。
I got the answer, in order to set the good resolution just update the constraint and the output video quality will be better.