This commit is contained in:
j 2018-04-01 14:03:31 +05:30
parent 0e662dfac5
commit 8e9461865f
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
<script type="text/javascript" src="js/player.js?2"></script>
<script type="text/javascript" src="js/staticfuncs.js?2"></script>
<script type="text/javascript" src="js/classes.js?2"></script>
<script type="text/javascript" src="js/app.js?3"></script>
<script type="text/javascript" src="js/app.js?4"></script>
<script type="text/javascript" src="js/ox.extra.js"></script>
<script type="text/javascript" src="js/dnd.js"></script>
<script type="text/javascript" src="js/error.js?2"></script>

View file

@ -45,6 +45,7 @@ Ox.load({
return false;
}
}
var seekTime = parseFloat($('#seekTime').val());
if (navigator.platform == 'MacIntel') {
//Ctrl - Seek Back
if (e.keyCode == 17) {
@ -56,12 +57,12 @@ Ox.load({
}
} else {
//PageUp - seek back
if (e.keyCode == 33) {
if (e.keyCode == 33 && !e.shiftKey) {
seek(-seekTime)
}
// PageDown - seek fwd.
if (e.keyCode == 34) {
if (e.keyCode == 34 && !e.shiftKey) {
seek(seekTime)
}
}
@ -331,7 +332,6 @@ function loadVideo(videoFile) {
};
function seek(delta) {
var seekTime = parseFloat($('#seekTime').val());
var currTime = Video.get();
var newTime = currTime + delta;
Video.set(newTime);