Skip to content

Commit

Permalink
fix(android): implement seek backward in notification service (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrinaldi committed May 21, 2024
1 parent c80164c commit 94b3da3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VideoPlaybackCallback(private val seekIntervalMS: Long) : MediaSession.Cal
): ListenableFuture<SessionResult> {
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)
}
Expand Down

0 comments on commit 94b3da3

Please sign in to comment.