06-24-2013 09:11 AM
Hi everyone,
I'm using LV10 and would like to know if it's possible to
a) pause a playing avi file and then continue it from where it was stopped
b) pause a playing avi file, scroll to a certain frame on a controlbar and continue it from there
My main concern is the loop iteration terminal which is needed to keep the avi file playing. When I'm using a case structure (in the while loop) to switch between playing and manually choosing the frame, the iteration continues... leading to a jump after switching back to play mode or ending the loop when [i] equals the max. frame number.
06-24-2013 09:51 AM
Instead of using the loop index to select which frame to load, use a shift register. Only increment the number in the shift register when the movie is playing, not while paused. With a little work, this can be integrated with a progress bar to select any frame to view.
Bruce
06-25-2013 06:52 AM
Once again, thanks for your help!
Not using the loop index really made everything easier. I used a shifted register at first, after I integrated a progress bar with a pointer I had to use a local variable. Now everything does what it's supposed to.