summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-04-11 11:36:13 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-04-11 11:36:13 -0400
commitcf8780925592318acfec4220569842a94fcfb2df (patch)
treee198e7330d90bb48dad506106415d56c4199954c /www/js/EventModalCtrl.js
parentd38fafc378ae1555717906cb48f76087b1158893 (diff)
#805 persistent playback rate
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js6
1 files changed, 4 insertions, 2 deletions
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();
};