aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts15
1 files changed, 13 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index b5317f45b..d715adf56 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -687,9 +687,20 @@ export class PeertubePlayerManager {
687 player.playbackRate(parseFloat(newValue.toFixed(2))) 687 player.playbackRate(parseFloat(newValue.toFixed(2)))
688 } 688 }
689 }, 689 },
690 frameByFrame: { 690 previousFrame: {
691 key: function (event: KeyboardEvent) { 691 key: function (event: KeyboardEvent) {
692 return isNaked(event, '.') 692 return event.key === ','
693 },
694 handler: function (player: videojs.Player) {
695 player.pause()
696 // Calculate movement distance (assuming 30 fps)
697 const dist = 1 / 30
698 player.currentTime(player.currentTime() - dist)
699 }
700 },
701 nextFrame: {
702 key: function (event: KeyboardEvent) {
703 return event.key === '.'
693 }, 704 },
694 handler: function (player: videojs.Player) { 705 handler: function (player: videojs.Player) {
695 player.pause() 706 player.pause()