Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: frame-by-frame advancing



getTime() and setTime(). Also getDuration() may help :)

getTime() will return u the frame the movie is at.
setTime() will set the movie to a given frame.
getDuration() will tell u how many frames there are all together.

Hope that helps?

Tops

aNt


> I'm trying to implement a jog shuttle control for QT movies. The
> component is all ready to go: I based the code on the JogShuttle example
> lifted from "Java Swing". When the knob is turned, the component fires an
> adjustment event indicating by how many units it was turned. Now I need
> to find a meaningful way to map these units into QT terms.
>
> I figured, the ideal way would be to have one turn unit correspond to a
> movie frame. For that, it seems, I need Movie.getNextInterestingTime().
> But I'm doubtful of whether it will do what I want. Judging from the
> description given in the docs, if I use the nextTimeSyncSample flag, that
> will only find me key frames. But what about the intermediate frames
> (B, P, I, or whatever else the underlying codec may use), how do I get to
> those?




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.