diff --git a/java/libraries/video/src/processing/video/Movie.java b/java/libraries/video/src/processing/video/Movie.java index fbc13741d..a095b96c5 100644 --- a/java/libraries/video/src/processing/video/Movie.java +++ b/java/libraries/video/src/processing/video/Movie.java @@ -830,7 +830,17 @@ public class Movie extends PImage implements PConstants { protected void eosEvent() { if (repeat) { - goToBeginning(); + if (0 < rate) { + // Playing forward, so we return to the beginning + goToBeginning(); + } else { + // Playing backwards, so we go to the end. + goToEnd(); + } + + // The rate is reset to 1 when restarting the stream, so + // we call frameRate to restart the rate. + frameRate(fps); } else { playing = false; }