提交 ac9506b0 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-7699

上级 06f7040e
This diff was suppressed by a .gitattributes entry.
...@@ -2145,11 +2145,9 @@ ...@@ -2145,11 +2145,9 @@
$.verto.videoDevices = []; $.verto.videoDevices = [];
$.verto.audioDevices = []; $.verto.audioDevices = [];
$.verto.init = function(obj, runtime) { var checkDevices = function(runtime) {
var aud = [], vid = [];
$.FSRTC.getValidRes(obj.camera, function() {
console.info("enumerating devices"); console.info("enumerating devices");
var aud = [], vid = [];
if (MediaStreamTrack.getSources) { if (MediaStreamTrack.getSources) {
MediaStreamTrack.getSources(function (media_sources) { MediaStreamTrack.getSources(function (media_sources) {
...@@ -2206,8 +2204,15 @@ ...@@ -2206,8 +2204,15 @@
.catch(function(err) { .catch(function(err) {
console.log(err.name + ": " + error.message); console.log(err.name + ": " + error.message);
runtime(); runtime();
}); }).else(runtime);
} }
};
$.verto.init = function(obj, runtime) {
checkDevices(function() {
$.FSRTC.getValidRes(obj.camera, runtime);
}); });
} }
......
This diff was suppressed by a .gitattributes entry.
...@@ -1240,7 +1240,7 @@ function init() { ...@@ -1240,7 +1240,7 @@ function init() {
refresh_devices(); refresh_devices();
} }
$(document).ready(function() { $(window).load(function() {
var hash = window.location.hash.substring(1); var hash = window.location.hash.substring(1);
var a = []; var a = [];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论