提交 1dc76263 authored 作者: Anthony Minessale's avatar Anthony Minessale

only test audio once on setup of lib to speed up vid res tests

上级 23e9bfc4
This diff was suppressed by a .gitattributes entry.
......@@ -1023,6 +1023,7 @@ var iceTimer;
var resList = [[320, 180], [320, 240], [640, 360], [640, 480], [1280, 720], [1920, 1080]];
var resI = 0;
var ttl = 0;
var checkRes = function (cam, func) {
......@@ -1060,7 +1061,7 @@ var iceTimer;
getUserMedia({
constraints: {
audio: true,
audio: ttl++ == 0,
video: video
},
onsuccess: function(e) {e.stop(); console.info(w + "x" + h + " supported."); $.FSRTC.validRes.push([w, h]); checkRes(cam, func);},
......
This diff was suppressed by a .gitattributes entry.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论