Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

myMovie.time() returns incorrect value #210

Open
illusionmanager opened this issue Nov 8, 2022 · 1 comment
Open

myMovie.time() returns incorrect value #210

illusionmanager opened this issue Nov 8, 2022 · 1 comment

Comments

@illusionmanager
Copy link

I'm having trouble with looping the video. the loop() call itself doesn't work, and the workaround
if (m.duration() - m.time() < 0.05) {
m.jump(0);
}
seems unreliable. I had to increase the value to 0.15 to make it work and then the loop isn't even seamless. So instead of using a movieEvent() to read the frame, I thought perhaps loop() works when using available() and read() inside the draw() function. It doesn't help. So for debugging purposes I added println (myMovie.time(). At the end of the movie it keeps printing 20.02. However sometimes it prints -1.0E-9. That might be the systems attempt to loop the movie, but clearly it is wrong and doesn't work.

@illusionmanager
Copy link
Author

interesting enough the duration() reports 20.096 but the time stops increasing at 20.02 (the movie itself has 29.97 fps). does it stop reading before the actual end is reached??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant