JMF SolutionsHow can I wrap a movie around a 3D image, seek to a specific frame, generate a movie from a series of JPEG images, add Swing support, and so on? A movie can be wrapped around a 3D image (such as a cylinder) by creating a Java3D renderer plug-in that integrates with the rest of JMF. For a complete description of this solution (along with source code), please visit Sun's Java3D Renderer Web page (http://java.sun.com/products/java-media/jmf/2.1/solutions/DemoJMFJ3D.html). It's possible to seek to a specific frame by using JMF's FramePositioningControl class (located in the javax.media.control package). A complete description of a solution (as well as source code) that uses this class is available at Sun's Frame Seeking inside a Movie Web page (http://java.sun.com/products/java-media/jmf/2.1/solutions/Seek.html). If you want to generate a movie from a series of JPEG images, you'll need to create a custom PullBufferDataSource , which is then used to create a processor. Information on how to achieve this task is located at Sun's Generating a Movie File from a List of (JPEG) Images Web page ((http://java.sun.com/products/java-media/jmf/2.1/solutions/JpegImagesToMovie.html). Earlier in this chapter, a tip was presented that discussed supporting Swing components . To learn more about this support, check out Sun's Using JMF in Swing Web page (http://java.sun.com/products/java-media/jmf/2.1/solutions/SwingJMF.html). In addition to the aforementioned solutions, Sun has provided a Web page index to a comprehensive online set of JMF solutions to a wide variety of JMF problems. To visit this index, go to http://java.sun.com/products/java-media/jmf/2.1/solutions/. |