Skip to content

Commit

Permalink
#805 persistent playback rate
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Apr 11, 2019
1 parent e37ca00 commit 97b237e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/js/EventModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
};

Expand Down

0 comments on commit 97b237e

Please sign in to comment.