Merge pull request #409 in FS/freeswitch from ~JMESQUITA/freeswitch:bugfix/FS-8003-communicator-does-not-list-microphones to master
* commit 'c0a5c54bc10c7ebdb65f5aafc8d60dbad6477944': FS-8003 #resolve Use audioInDevices instead of audioDevices to match verto plugin.
This commit is contained in:
commit
8f9f1ee87d
|
@ -234,8 +234,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location',
|
|||
|
||||
refreshDevices: function(callback) {
|
||||
console.debug('Attempting to refresh the devices.');
|
||||
|
||||
|
||||
function refreshDevicesCallback() {
|
||||
data.videoDevices = [{
|
||||
id: 'none',
|
||||
label: 'No camera'
|
||||
|
@ -283,8 +282,8 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location',
|
|||
});
|
||||
}
|
||||
|
||||
for (var i in jQuery.verto.audioDevices) {
|
||||
var device = jQuery.verto.audioDevices[i];
|
||||
for (var i in jQuery.verto.audioInDevices) {
|
||||
var device = jQuery.verto.audioInDevices[i];
|
||||
// Selecting the first source.
|
||||
if (i == 0) {
|
||||
data.selectedAudio = device.id;
|
||||
|
@ -302,17 +301,11 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location',
|
|||
label: device.label || device.id
|
||||
});
|
||||
}
|
||||
|
||||
console.debug('Devices were refreshed.');
|
||||
|
||||
if (angular.isFunction(callback)) {
|
||||
var devices = {
|
||||
audio: data.audioDevices,
|
||||
video: data.videoDevices,
|
||||
share: data.shareDevices
|
||||
};
|
||||
callback(data.instance, devices);
|
||||
}
|
||||
|
||||
jQuery.verto.refreshDevices(refreshDevicesCallback);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue