Media Capture

One of the more exciting aspects of the JMF, particularly when combined with transmission over a network as discussed in Chapter 9, is the ability to capture media directly from devices attached to the computer. The stereotypical examples of these devices are microphones, video cameras, and video capture boards.

Thus it is possible to directly record sound or video through the appropriate hardware connected to the PC and either save that to a file, play it back, process and transcode it, or even transmit it.

The JMF model of media capture sees the capture device as a DataSource. With the appropriate initialization steps, detailed later, media capture falls within the precincts of playing or processing media: When a DataSource has ...

Get Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.