FS-8178 - [verto_communicator] Define first share device selected by default in settings modal

This commit is contained in:
Stefan Yohansson 2015-09-17 08:12:23 -03:00
parent 944bad6708
commit da0b7c6152
1 changed files with 5 additions and 1 deletions

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();