quicktime-java

[Prev] Thread [Next]  |  [Prev] Date [Next]

about frame by frame step Gill Bates Mon Dec 08 01:05:38 2008

Hi all,
currently I'm using following code to step forward/backward for n steps

 for (int i = 0; i < x; i++) {
ti = visualTrack.getNextInterestingTime(StdQTConstants.nextTimeMediaSample, m.getTime(), -1);
                m.setTime(new TimeRecord(m.getTimeScale(), ti.time));
                Thread.sleep(10);
  }

But somehow when it is displayed in AWT windows, it looked full of lags, delays when it's stepping forward/backward. then I print out the time after each stem using "movie.getTime()", I found that each step is about 25 frames. And I do think manully call the thread to sleep isn't a wise way...
Anyone has a better idea to step back/forward to specific time?

Thx a lot.
Ramon
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]