Fwd / Rdw in QTMovieView

  • Hello

    I was wondering if anyone knows how to accomplish proper
    fast-forwarding and rewinding in a QTMovieView.  It's simple in an
    NSMovieView with -setRate, but QTMovieView doesn't seem to support the
    same.  QTMovieView only has stepForward/stepBackward, which move one
    frame at a time.

    Does anyone have an idea?

    Thank you
    AA
  • On Oct 20, 2006, at 5:44 PM, Aychamo Aychamo wrote:

    > I was wondering if anyone knows how to accomplish proper
    > fast-forwarding and rewinding in a QTMovieView.  It's simple in an
    > NSMovieView with -setRate, but QTMovieView doesn't seem to support the
    > same.  QTMovieView only has stepForward/stepBackward, which move one
    > frame at a time.
    >
    > Does anyone have an idea?

    Well, if no other method is found, then I don't see why you can't
    call -stepForward: etc. repeatedly with an NSTimer...

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • Check the documentation, under "Setting Movie Attributes" you will
    find two methods to help you accomplish what you want to do.  Use
    either -setAttribute:forKey: to set a single attribute or -
    setMovieAttributes: to set several attributes at once.  The keys
    (listed under the "Constant" link) you want to set are
    QTMovieRateAttribute or QTMoviePreferredRateAttribute or
    QTMovieRateChangesdPreservePitchAttribute (depending on what you
    "really" want to do).

    later,

    dogulas

    On Oct 20, 2006, at 7:44 PM, Aychamo Aychamo wrote:

    > Hello
    >
    > I was wondering if anyone knows how to accomplish proper
    > fast-forwarding and rewinding in a QTMovieView.  It's simple in an
    > NSMovieView with -setRate, but QTMovieView doesn't seem to support the
    > same.  QTMovieView only has stepForward/stepBackward, which move one
    > frame at a time.
    >
    > Does anyone have an idea?
    >
    > Thank you
    > AA
  • Hi Douglas!

    Silly me!  I was checking the QTMovieView instead of QTMovie itself.
    It works fine now. However, I don't understand *why* it works.  I use
    the following:

    QTMovie *myMovie = [myQTMovieView movie];
    [movie setRate: X.0]; //whatever rate

    And it instantly takes effect.  I don't understand how I can create a
    new instance of the movie, modify that, and then the movie that is
    currently playing accepts the changes.  I would *think* that I would
    have to follow the code with a [myQTMovieView setMovie: myMovie];  but
    I dont.. It "just works"...

    Thank you
    AA

    On 10/20/06, douglas a. welton <douglas_welton...> wrote:
    > Check the documentation, under "Setting Movie Attributes" you will
    > find two methods to help you accomplish what you want to do.  Use
    > either -setAttribute:forKey: to set a single attribute or -
    > setMovieAttributes: to set several attributes at once.  The keys
    > (listed under the "Constant" link) you want to set are
    > QTMovieRateAttribute or QTMoviePreferredRateAttribute or
    > QTMovieRateChangesdPreservePitchAttribute (depending on what you
    > "really" want to do).
    >
    > later,
    >
    > dogulas
    >
    > On Oct 20, 2006, at 7:44 PM, Aychamo Aychamo wrote:
    >
    >> Hello
    >>
    >> I was wondering if anyone knows how to accomplish proper
    >> fast-forwarding and rewinding in a QTMovieView.  It's simple in an
    >> NSMovieView with -setRate, but QTMovieView doesn't seem to support the
    >> same.  QTMovieView only has stepForward/stepBackward, which move one
    >> frame at a time.
    >>
    >> Does anyone have an idea?
    >>
    >> Thank you
    >> AA
    >
    >
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today