gpt4 book ai didi

google-chrome - 我们可以为 webrtc 视频设置的最低分辨率是多少?

转载 作者:行者123 更新时间:2023-12-04 14:29:36 25 4
gpt4 key购买 nike

我正在使用 webrtc 测试点对点视频聊天应用程序。当我将视频限制设置为

var video_constraints = {
mandatory: {
maxHeight: 120,
maxWidth: 160
},
optional: []
};

window.navigator.webkitGetUserMedia({
audio: true,
video: video_constraints
}, onSuccess, onError);

这会触发 onError。可能是什么原因?

最佳答案

引自 code.google.com/p/chromium/issues/detail?id=143631#c9 :

GetUserMedia constraints are matched with a fixed list of resolutions independent on what the camera actually support. The list is fixed and used on all platforms.


1280, 720,
960, 720,
640, 360,
640, 480,
320, 240,
320, 180

这意味着您的约束将失败。

Harald Alvestrand 的 IETF draft 中也记录了约束。 .

关于google-chrome - 我们可以为 webrtc 视频设置的最低分辨率是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16804851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com