<script type="text/javascript" src="src/vertoControllers/controllers/ModalLoginInformationController.js"></script>
<script type="text/javascript" src="src/vertoControllers/controllers/SettingsController.js"></script>
<script type="text/javascript" src="src/vertoControllers/controllers/PreviewController.js"></script>
+ <script type="text/javascript" src="src/vertoControllers/controllers/LoadingController.js"></script>
<script type="text/javascript" src="src/vertoDirectives/vertoDirectives.module.js"></script>
<script type="text/javascript" src="src/vertoDirectives/directives/autofocus.js"></script>
"LANGUAGE": "Language:",
"BROWSER_LANGUAGE": "Browser Language",
"FACTORY_RESET_SETTINGS": "Factory Reset Settings",
- "AUTOGAIN_CONTROL": "Auto Gain Control"
+ "AUTOGAIN_CONTROL": "Auto Gain Control",
+ "WAITING_DEVICES": "Waiting for devices..."
}
"CHAT_DEAF": "Ligar Áudio",
"CHAT_UNDEAF": "Desligar Áudio",
"FACTORY_RESET_SETTINGS": "Redefinir configurações",
- "AUTOGAIN_CONTROL": "Controle de Ganho Automático (AGC)"
+ "AUTOGAIN_CONTROL": "Controle de Ganho Automático (AGC)",
+ "WAITING_DEVICES": "Aguardando dispositivos..."
}
--- /dev/null
+<div class="centered-block-frame" id="loading">
+ <div class="col-md-6 centered-block">
+ <div class="card">
+ <div class="card-body text-center">
+ <h2>{{ 'LOADING' | translate}}</h2>
+ <div>{{ 'WAITING_DEVICES' | translate }}</div>
+ </div>
+ </div>
+ </div>
+</div>
\ No newline at end of file
templateUrl: 'partials/incall.html',
controller: 'InCallController'
}).
+ when('/loading', {
+ title: 'Loading Verto Communicator',
+ templateUrl: 'partials/loading.html',
+ controller: 'LoadingController'
+ }).
when('/preview', {
title: 'Preview Video',
templateUrl: 'partials/preview.html',
--- /dev/null
+(function() {
+ 'use strict';
+
+ angular
+ .module('vertoControllers')
+ .controller('LoadingController', ['$rootScope', '$scope', '$location',
+ function($rootScope, $scope, $location) {
+ console.log('Loading controller');
+ $rootScope.$on('res_check_done', function() {
+ $location.path('/preview');
+ });
+ }
+ ]);
+})();
}
if (redirect && storage.data.preview) {
- $location.path('/preview');
+ $location.path('/loading');
} else if (redirect) {
$location.path('/dialpad');
}
}
});
+ $rootScope.$emit('res_check_done');
} else {
console.debug('There is no instance of verto.');