Merge pull request #484 in FS/freeswitch from ~STEFAN_YOHANSSON/freeswitch:bugfix/FS-8178-empty-default-share-device-option to master

* commit 'da0b7c615285abff7f00e054c187ec03c3ce77ce':
  FS-8178 - [verto_communicator] Define first share device selected by default in settings modal
This commit is contained in:
Ítalo Rossi 2015-09-17 06:41:49 -05:00
commit d66d2271f7

View File

@ -206,6 +206,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
}];
data.audioDevices = [];
if(!storage.data.selectedShare) {
storage.data.selectedShare = data.shareDevices[0]['id'];
}
for (var i in jQuery.verto.videoDevices) {
var device = jQuery.verto.videoDevices[i];
if (!device.label) {
@ -505,7 +509,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
cleanShareCall(that);
} else {
if (data.conf) {
data.liveArray.destroy();
data.liveArray.destroy();
data.conf.destroy();
}
cleanCall();