Re: Fast Forward and backward about QuickTime movie
Re: Fast Forward and backward about QuickTime movie
- Subject: Re: Fast Forward and backward about QuickTime movie
- From: douglas welton <email@hidden>
- Date: Wed, 22 Apr 2009 11:27:41 -0400
According to the documentation for QTMovie, setting the playback rate
using the -setRate: is rather straightforward. As for getting the
button's state to align with playback, I would probably subclass the
button, overriding -mouseUp: and -mouseDown: as appropriate.
On Apr 21, 2009, at 11:05 PM, Bright wrote:
Hi douglas,
thank you for your help.
Now I expect that the speed is fast when user press the button
and the speed
is normal when user unfasten the button. I am a fresh man,ha. I
don't know how
to do this. Could you tell more detail?thank you!
2009-04-21,"douglas welton" <email@hidden>
>To implement a fast (scan) forward or backward, simply set the
movie's
>playback rate to a value greater than 1.0 ( or -1.0 for going
>backward). You'll want to experiment with want looks best for you,
>but a typical value might be 2.0, 4.0, 8.0... you get the picture.
>
>Depending on how you want to the user to interact with your fast
>forward or fast backward buttons, you'll want to create an action
that
>interprets the button's click, then determines when to start the
movie
>playing at the "scan" rate.
>
>later,
>
>douglas
>
>On Apr 21, 2009, at 10:39 AM, Bright wrote:
>
>> Hi,
>> By using the "-stepForward:" and the "-stepBackward:" methods
>> of the QTMovie class, I realized the forward/backward a frame
>> when I click the corresponding buttons.
>> But my purpose is to implement fast forward and fast backward
>> when I press the corresponding buttons for a while. The result
>> should like the QuickTime Play's fast forward and fast backward
>> buttons.How to implement it? Any help is useful for me.
>> Thanks
>
网易邮箱,中国第一大电子邮件服务商
_______________________________________________
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