From cf8780925592318acfec4220569842a94fcfb2df Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 11 Apr 2019 11:36:13 -0400 Subject: #805 persistent playback rate --- www/js/EventModalCtrl.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'www/js/EventModalCtrl.js') diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index f22f6dc0..096fc52f 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -212,7 +212,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro }; $scope.onPlaybackUpdate = function (rate) { - // console.log ("UPDATED RATE TO "+rate); + //console.log ("UPDATED RATE TO "+rate); var ld = NVR.getLogin(); ld.videoPlaybackSpeed = rate; NVR.setLogin(ld); @@ -244,7 +244,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro }); } } - NVR.debug ("Invoking play as video can be played"); + var rate = NVR.getLogin().videoPlaybackSpeed; + NVR.debug ("Invoking play at rate:"+rate+" as video can be played"); + handle.setPlayback (rate); handle.play(); }; -- cgit v1.2.3