Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
defaultSkipInterval * player.playbackRate()
  • Loading branch information
hockerschwan committed Mar 27, 2022
commit 27806ac7f9cdc5f7c8efccb648c611b38456064f
8 changes: 4 additions & 4 deletions src/renderer/components/ft-video-player/ft-video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ export default Vue.extend({
// J Key
// Rewind by 2x the time-skip interval (in seconds)
event.preventDefault()
this.changeDurationBySeconds(-this.defaultSkipInterval * 2)
this.changeDurationBySeconds(-this.defaultSkipInterval * this.player.playbackRate() * 2)
break
case 75:
// K Key
Expand All @@ -1509,7 +1509,7 @@ export default Vue.extend({
// L Key
// Fast-Forward by 2x the time-skip interval (in seconds)
event.preventDefault()
this.changeDurationBySeconds(this.defaultSkipInterval * 2)
this.changeDurationBySeconds(this.defaultSkipInterval * this.player.playbackRate() * 2)
break
case 79:
// O Key
Expand Down Expand Up @@ -1557,13 +1557,13 @@ export default Vue.extend({
// Left Arrow Key
// Rewind by the time-skip interval (in seconds)
event.preventDefault()
this.changeDurationBySeconds(-this.defaultSkipInterval * 1)
this.changeDurationBySeconds(-this.defaultSkipInterval * this.player.playbackRate())
break
case 39:
// Right Arrow Key
// Fast-Forward by the time-skip interval (in seconds)
event.preventDefault()
this.changeDurationBySeconds(this.defaultSkipInterval * 1)
this.changeDurationBySeconds(this.defaultSkipInterval * this.player.playbackRate())
break
case 73:
// I Key
Expand Down