Play Movie frame by frame
I have made an application which plays a movie from my library.
I have added start, pause and continue functionality.
Now I would like to add a PlayFrame function. Since videos are recorded at 24 fps one solution would be to play video for 1/24 sec and then pause again. Another solution would be to break video down to frames and play one at a time.
For the first solution I tried with a simple:
[theMovie play];
sleep(100);
[theMovie pause];
This made the simulator continuously play the movie and freeze both simulator and xcode.
Should I use threading or what? Please advice.
|