How to determine if a movie is playing or is in pause or has reached the end

edited February 2014 in Library Questions

Hi all, I was use to use GSVideo library for playing video, but it's incompatible with the new Processing, so I have to use Movie class.

Now my problem: how can I determine if a movie is playing or is in pause, or has reached the end? With GSMovie there was isPlaying() and isPaused() methods.

For the reaching of the end I cannot use time() and duration() because they're not accurate. For example, I have a movie with duration of 19,008 but the end is reached at 18,967, so I cannot comparate them.

Thanks.

Tagged:
Sign In or Register to comment.