video logout handling

This commit is contained in:
Manuel Araoz 2014-04-28 11:56:27 -03:00
commit c89f9528c8
2 changed files with 22 additions and 4 deletions

View file

@ -17,6 +17,8 @@ angular.module('copay.controllerUtils')
$rootScope.wallet = null;
delete $rootScope['wallet'];
$rootScope.totalBalance = 0;
video.close();
$rootScope.videoSrc = {};
$location.path('signin');
};
@ -38,6 +40,7 @@ angular.module('copay.controllerUtils')
root.startNetwork = function(w) {
var handlePeerVideo = function(err, peerID, url) {
if (err) {
delete $rootScope.videoSrc[peerID];
return;
}
$rootScope.videoSrc[peerID] = encodeURI(url);