Custom progress bar for QTMovie??
Custom progress bar for QTMovie??
- Subject: Custom progress bar for QTMovie??
- From: Chase Meadors <email@hidden>
- Date: Tue, 20 Apr 2010 22:09:27 -0500
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 (email@hidden)
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:
This email sent to email@hidden