fix(android): implement seek backward in notification service (#3808)
This commit is contained in:
parent
c80164ccdf
commit
94b3da3477
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user