From 3e490ce2fc43a962565ff17f1987d67c7795e911 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 16 Jun 2019 08:56:49 -0400 Subject: added livefps option --- www/js/MonitorModalCtrl.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'www/js') diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js index fdc0355c..bf6c95dd 100644 --- a/www/js/MonitorModalCtrl.js +++ b/www/js/MonitorModalCtrl.js @@ -1257,12 +1257,17 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ var stream; + var fps = NVR.getLogin().liveFPS; stream = $scope.monitor.Monitor.streamingURL + "/nph-zms?mode=" + getSingleStreamMode() + "&monitor=" + $scope.monitorId + "&scale=" + $scope.quality + - '&buffer=1000' + - $rootScope.authSession + + '&buffer=1000'; + + if (fps) { + stream +='&maxfps='+fps; + } + stream += $rootScope.authSession + "&rand=" + $rootScope.modalRand + appendSingleStreamConnKey(); -- cgit v1.2.3