add config for video, add names in footer
This commit is contained in:
parent
225fbc02da
commit
88116dab25
6 changed files with 20 additions and 11 deletions
|
|
@ -17,6 +17,8 @@ angular.module('copayApp.controllers').controller('FooterController', function($
|
|||
$scope.version = copay.version;
|
||||
|
||||
$scope.getVideoURL = function(copayer) {
|
||||
if (config.disableVideo) return;
|
||||
|
||||
var vi = $rootScope.videoInfo[copayer]
|
||||
if (!vi) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ angular.module('copayApp.services')
|
|||
w.on('ready', function(myPeerID) {
|
||||
$rootScope.wallet = w;
|
||||
$location.path('addresses');
|
||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||
if (!config.disableVideo)
|
||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||
});
|
||||
|
||||
w.on('publicKeyRingUpdated', function(dontDigest) {
|
||||
|
|
@ -83,7 +84,7 @@ angular.module('copayApp.services')
|
|||
root.onErrorDigest(msg);
|
||||
});
|
||||
w.on('connect', function(peerID) {
|
||||
if (peerID) {
|
||||
if (peerID && !config.disableVideo) {
|
||||
video.callPeer(peerID, handlePeerVideo);
|
||||
}
|
||||
$rootScope.$digest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue