From a0b95902f5d1ed896eb8b101b313769b708ff06a Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Tue, 17 Aug 2021 23:50:41 -0600 Subject: [PATCH] Also add timings to scrubbing --- JellyfinPlayer/VideoPlayer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JellyfinPlayer/VideoPlayer.swift b/JellyfinPlayer/VideoPlayer.swift index fba23e70..f8eed566 100644 --- a/JellyfinPlayer/VideoPlayer.swift +++ b/JellyfinPlayer/VideoPlayer.swift @@ -171,7 +171,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe if playerDestination == .local { mediaPlayer.jumpBackward(jumpBackwardLength.rawValue) } else { - self.sendJellyfinCommand(command: "Seek", options: ["position": (remotePositionTicks/10_000_000)-15]) + self.sendJellyfinCommand(command: "Seek", options: ["position": (remotePositionTicks/10_000_000) - jumpBackwardLength.rawValue]) } } } @@ -181,7 +181,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe if playerDestination == .local { mediaPlayer.jumpForward(jumpForwardLength.rawValue) } else { - self.sendJellyfinCommand(command: "Seek", options: ["position": (remotePositionTicks/10_000_000)+30]) + self.sendJellyfinCommand(command: "Seek", options: ["position": (remotePositionTicks/10_000_000) + jumpForwardLength.rawValue]) } } }