1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

Improved docs

This commit is contained in:
litetex 2022-01-21 21:28:24 +01:00
parent 30ce906f72
commit 54ef604569

View File

@ -609,14 +609,14 @@ public final class Player implements
return FastSeekDirection.NONE;
}
if (portion == DisplayPortion.LEFT) {
// Check if we can rewind
// Check if it's possible to rewind
// Small puffer to eliminate infinite rewind seeking
if (simpleExoPlayer.getCurrentPosition() < 500L) {
return FastSeekDirection.NONE;
}
return FastSeekDirection.BACKWARD;
} else if (portion == DisplayPortion.RIGHT) {
// Check if the can fast-forward
// Check if it's possible to fast-forward
if (currentState == STATE_COMPLETED
|| simpleExoPlayer.getCurrentPosition()
>= simpleExoPlayer.getDuration()) {