Also add timings to scrubbing

This commit is contained in:
Ethan Pippin 2021-08-17 23:50:41 -06:00
parent 4e41863d23
commit a0b95902f5
1 changed files with 2 additions and 2 deletions

View File

@ -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])
}
}
}