Improved docs
This commit is contained in:
parent
30ce906f72
commit
54ef604569
|
@ -609,14 +609,14 @@ public final class Player implements
|
||||||
return FastSeekDirection.NONE;
|
return FastSeekDirection.NONE;
|
||||||
}
|
}
|
||||||
if (portion == DisplayPortion.LEFT) {
|
if (portion == DisplayPortion.LEFT) {
|
||||||
// Check if we can rewind
|
// Check if it's possible to rewind
|
||||||
// Small puffer to eliminate infinite rewind seeking
|
// Small puffer to eliminate infinite rewind seeking
|
||||||
if (simpleExoPlayer.getCurrentPosition() < 500L) {
|
if (simpleExoPlayer.getCurrentPosition() < 500L) {
|
||||||
return FastSeekDirection.NONE;
|
return FastSeekDirection.NONE;
|
||||||
}
|
}
|
||||||
return FastSeekDirection.BACKWARD;
|
return FastSeekDirection.BACKWARD;
|
||||||
} else if (portion == DisplayPortion.RIGHT) {
|
} else if (portion == DisplayPortion.RIGHT) {
|
||||||
// Check if the can fast-forward
|
// Check if it's possible to fast-forward
|
||||||
if (currentState == STATE_COMPLETED
|
if (currentState == STATE_COMPLETED
|
||||||
|| simpleExoPlayer.getCurrentPosition()
|
|| simpleExoPlayer.getCurrentPosition()
|
||||||
>= simpleExoPlayer.getDuration()) {
|
>= simpleExoPlayer.getDuration()) {
|
||||||
|
|
Loading…
Reference in New Issue