Frame Seeking inside a Movie

JMF Solutions

Problem

To seek to individual frames inside a movie.

Solution

FramePositioningControl is used for seeking, stepping and to calculate frame-to-time or time-to-frame mapping.

Requirements

Platform: JDK 1.1.6 or later
JMF API: 2.0 or later
Implementation: AJ, WPP, SPP *

* AJ = All Java, WPP = Windows Performance Pack, SPP = Solaris Performance Pack

Related Classes

  • javax.media.Player
  • javax.media.control.FramePositioningControl

How to run this sample

java Seek <URL>

Example:

java Seek file:/c:/temp/foo.mov

Source Code

  • Seek.java