FS-8293 [verto_communicator] Implemented speed test in verto communicator.

This commit is contained in:
Jaon EarlWolf
2015-10-30 18:51:26 -03:00
committed by Anthony Minessale
parent 24b0161cdf
commit 5c73724f50
5 changed files with 87 additions and 20 deletions

View File

@@ -52,10 +52,11 @@
storage.data.email = verto.data.email;
storage.data.login = verto.data.login;
storage.data.password = verto.data.password;
verto.testSpeed();
if (redirect && storage.data.preview) {
$location.path('/preview');
}
else if (redirect) {
} else if (redirect) {
$location.path('/dialpad');
}
}

View File

@@ -26,6 +26,21 @@
return verto.refreshDevices();
};
$scope.rangeBandwidth = function(bandwidth) {
for(var i = 0; i < verto.videoQuality.length; i++) {
}
};
$scope.testSpeed = function() {
return verto.testSpeed(cb);
function cb(data) {
$scope.$apply();
}
};
$scope.resetSettings = function() {
if (confirm('Factory Reset Settings?')) {
storage.factoryReset();