mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Use user setting for seeking on Android TV
This commit is contained in:
parent
b2b16fccc5
commit
a01181e8e0
1 changed files with 4 additions and 10 deletions
|
@ -1050,20 +1050,14 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyEvent.KEYCODE_DPAD_LEFT -> {
|
KeyEvent.KEYCODE_DPAD_LEFT -> {
|
||||||
if (!isShowing && !isLocked) {
|
if ((!isShowing && !isLocked) || player_pause_play?.isFocused == true) {
|
||||||
player.seekTime(-10000L)
|
player.seekTime(fastForwardTime)
|
||||||
return true
|
|
||||||
} else if (player_pause_play?.isFocused == true) {
|
|
||||||
player.seekTime(-30000L)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
||||||
if (!isShowing && !isLocked) {
|
if ((!isShowing && !isLocked) || player_pause_play?.isFocused == true) {
|
||||||
player.seekTime(10000L)
|
player.seekTime(fastForwardTime)
|
||||||
return true
|
|
||||||
} else if (player_pause_play?.isFocused == true) {
|
|
||||||
player.seekTime(30000L)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue