FS-8222 [verto_communicator] updated getScreenId.js in order to detect plugin issues and attached an 'ended' event to screenshare stream in order to detect 'stop sharing' click

This commit is contained in:
Jaon EarlWolf committed 2015-10-28 15:35:25 -03:00
1 parent 9edede6c08
commit 43cb965f7e
4 files changed
+207 -38

No files matched your search

@@ -24,13 +24,13 @@
* @type {string}
*/
$rootScope.dialpadNumber = '';
// If verto is not connected, redirects to login page.
if (!verto.data.connected) {
console.debug('MainController: WebSocket not connected. Redirecting to login.');
$location.path('/');
}
$rootScope.$on('config.http.success', function(ev) {
$scope.login(false);
});
@@ -58,7 +58,7 @@
}
});
};
verto.data.connecting = true;
verto.connect(connectCallback);
};
@@ -135,7 +135,7 @@
templateUrl: templateUrl,
controller: controller,
};
angular.extend(options, _options);
var modalInstance = $modal.open(options);
@@ -154,7 +154,7 @@
jQuery.material.init();
}
);
return modalInstance;
};
@@ -454,14 +454,6 @@
$scope.incomingCall = false;
};
$scope.screenshare = function() {
if (verto.data.shareCall) {
verto.screenshareHangup();
return false;
}
verto.screenshare(storage.data.called_number);
};
$scope.play = function() {
var file = $scope.promptInput('Please, enter filename', '', 'File',
function(file) {