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



Hi all,

The way I sorted it out was to use the step function in the movie controller to step to the relevant start and end points and get the current time of the movie controller at both of those points to give to the selection:

movie.goToBeginning();
movieController.step(framein);

long startFrameTime = movieController.getCurrentTime();

movieController.step(frameout-framein);

long endFrameTime = movieController.getCurrentTime();

TimeRecord start = new TimeRecord(movieController.getTimeScale(), startFrameTime);
TimeRecord duration = new TimeRecord(movieController.getTimeScale(), endFrameTime-startFrameTime);
       
movieController.setSelectionBegin(start);
movieController.setSelectionDuration(duration);
movieController.setPlaySelection(true);

And that should just about do it!

BTW, Alex, I would be very interested in knowing how to create reference movies in Java as it would be good if I could store references to the selections at some stage!

Thanks for all your help!

Paul.
 _______________________________________________
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

References: 
 >Re: limit playback (From: Ron Stanonik <email@hidden>)
 >Re: limit playback (From: Paul Loy <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.