From 94b3da3477af3d82e4b16e6c93beb5c92ccee59b Mon Sep 17 00:00:00 2001 From: Paul Rinaldi <107127397+paulrinaldi@users.noreply.github.com> Date: Tue, 21 May 2024 15:16:07 -0500 Subject: [PATCH] fix(android): implement seek backward in notification service (#3808) --- .../main/java/com/brentvatne/exoplayer/VideoPlaybackCallback.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackCallback.kt b/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackCallback.kt index f2b740d4..e2a0465a 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackCallback.kt +++ b/android/src/main/java/com/brentvatne/exoplayer/VideoPlaybackCallback.kt @@ -36,7 +36,7 @@ class VideoPlaybackCallback(private val seekIntervalMS: Long) : MediaSession.Cal ): ListenableFuture { when (customCommand.customAction) { VideoPlaybackService.COMMAND_SEEK_FORWARD -> session.player.seekTo(session.player.contentPosition + seekIntervalMS) - VideoPlaybackService.COMMAND_SEEK_BACKWARD -> session.player.seekTo(session.player.contentPosition + seekIntervalMS) + VideoPlaybackService.COMMAND_SEEK_BACKWARD -> session.player.seekTo(session.player.contentPosition - seekIntervalMS) } return super.onCustomCommand(session, controller, customCommand, args) }