GSMovie cannot be inspected to tell if it's finished.
in
Contributed Library Questions
•
2 years ago
As far as I can see there's no functioning way to tell if a GSMovie has finished.
The scenario I have is that there is a video being painted as part of a processing sketch. When the video is finished, I would like to do something. However, there's no way I can find to get a GSMovie to tell me it's finished.
I've tried the following expressions and none of them ever return true. The video simply goes black and stops getting new frames. Really frustrating - been about 4 hours of work on this so far to fail to get a simple boolean value...
movie.frame() >= movie.length() - 1
movie.time() == movie.duration()
!movie.isPlaying();
!movie.isPlaying() && !movie.isPaused()
1