Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limit playback



On Fri, 30 Sep 2005, Paul Loy wrote:
> I'm trying to limit playback between two frames, like 0 and 156. I'm trying
> to use the setPlaySelection, setSelectionStart and setSelectionDuration of
> the MovieController class but am finding it hard to know what to send the
> TimeRecord to get it to limit correctly.

I couldn't make setSelectionStart/setSelectionDuration work either.
I ended up using setActiveSegment.  Here's a snippet from my code.

  timein = camera.timein;
  timeout = records[len - 1].timein;
  ti = new TimeInfo(timein, timeout - timein);
  m.setActiveSegment(ti);
  t.setActive(true);

Good luck,

Ron

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.