summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index d899e7e8..f1953c5d 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -175,7 +175,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
$timeout(function()
{
handle.pause();
- handle.setPlayback(2);
+ handle.setPlayback(NVRDataModel.getLogin().videoPlaybackSpeed);
handle.play();
}, 300);
@@ -183,6 +183,14 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
// window.stop();
};
+ $scope.onPlaybackUpdate = function(rate)
+ {
+ console.log ("UPDATED RATE TO "+rate);
+ var ld = NVRDataModel.getLogin();
+ ld.videoPlaybackSpeed = rate;
+ NVRDataModel.setLogin(ld);
+ };
+
$scope.onCanPlay = function()
{