Fixes some issue for FF

This commit is contained in:
hristoterezov 2015-12-09 14:05:16 +11:00
parent a68eaeefe6
commit c26f82acd9
4 changed files with 589 additions and 877 deletions

View File

@ -1,10 +0,0 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
max_line_length = 80
trim_trailing_whitespace = true

1
.gitattributes vendored
View File

@ -1 +1,2 @@
*.bundle.js -text -diff
.editorconfig

File diff suppressed because it is too large Load Diff

View File

@ -330,12 +330,13 @@ function enumerateDevicesThroughMediaStreamTrack (callback) {
}
function obtainDevices(options) {
if (!options.devices || options.devices.length === 0) {
return options.successCallback(options.streams);
if(!options.devices || options.devices.length === 0) {
return options.successCallback(options.streams || {});
}
var device = options.devices.splice(0, 1);
options.deviceGUM[device](function (stream) {
options.streams = options.streams || {};
options.streams[device] = stream;
obtainDevices(options);
},