Chase, The method I use for doing this relies on QuickTime, not QTKit. Even so, I think it is most effective. I implement a movieController action callback filter. This method is demonstrated in the "Adding New Capabilities to the QTKitPlayer Application" section of this document:
<http://developer.apple.com/legacy/mac/library/documentation/QuickTime/Conceptual/QTKitProgrammingGuide/Chapter05/AddingToQTKitPlayer.html#//apple_ref/doc/uid/TP40001245-CH207-TPXREF101> later, douglas Establish a On Apr 20, 2010, at 11:09 PM, Chase Meadors wrote: > I'm making a completely custom CoreAnimation-based view that plays an audio > media stored in a QT movie. However, I'm struck with an implementation > problem with indicating the current time in the movie. > > Ideally, if QTMovie defined a currentTime property, I could use bindings or a > binding-like design to handle the implementation of some time text & progress > bar. However, QTMovie does not define it as a property. It appears > setCurrentTime is not meant as an accessor to the variable; it's not called > when current time changes. There also is no delegate method or anything that > is called when currentTime changes. > > I could setup a timer to check on my QTMovie's currentTime, but that seems > silly to setup a 1 second timer to check that the current time has increased > by 1 second, when I could just maintain my own current time property. > > As said before, I could maintain my own currentTime property, incrementing it > every second that the QTMovie is playing, and I suppose re-sync it whenever > the user manually changes the currentTime. However, this just seems like > horrible design. > > So anyway, QTMovie doesn't appear to support a bindings like design for it's > currentTime, so how would one go about implementing a custom progress slider, > or text, representing the current time of a QTMovie?? > > Thanks for any thoughts! -Chase _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com