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

Reply via email to