How to slow down/speed up video?
I've been asked to write an app were the user can slow down or speed up video and even reverse it. Only video is required, no audio.
I've done a test with a Quicktime movie and using setRate(). It didn't work, though, as the rate always stays at 1.0 no matter what I set.
Do I need to use a specific codec for it to work? It there something about setRate() that I overlooked?
[397 byte] By [
NickDGa] at [2007-10-2 11:22:23]

I'm starting to fear that I need to create a Controller myself. Unfortunately the reference implementation on the Sun site (http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFApp-Controller.html) is missing 2 important classes: EventPoster & BasicClock.
Anyone have an implementation of those? Or have an idea how to do one?
> Read the api is important:
>
> You can only call this method on a Stopped Clock. A
> ClockStartedError is thrown if setRate is called on a
> Started Clock.
No exception is thrown when I use it so that isn't the problem.
> I have proved the setRate method and works ok playing
> a mpeg video file.
My Quicktime clip uses the CVID codec so maybe that's the problem. I'll try it with an MPEG next.