Fixes some issue for FF
This commit is contained in:
parent
a68eaeefe6
commit
c26f82acd9
|
@ -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 +1,2 @@
|
|||
*.bundle.js -text -diff
|
||||
.editorconfig
|
||||
|
|
1450
lib-jitsi-meet.js
1450
lib-jitsi-meet.js
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue