JAVA MEDIA FRAMEWORK
E oday applications that interact with external devices are increasingly common. We can meet user authentication systems from something as simple as introducing a security key or a more complex process such as fingerprint recognition. Java provides a multimedia-based mechanism for making applications more friendly to users. Thus, we can create an application that reads a key and display the image of the person we are looking for. This technology known as Java Media Framework (JMF Java and Multimedia Environment). Allows the integration of audio and video (playback and capture) and a set of tools for developing cross-platform technology. This API is available from its official website in the downloads section. Once you've downloaded the program is installed in the traditional way.
JMF already installed on your system do we have to recognize the external multimedia devices with which we have cameras, capture cards, sound cards, microphones, etc.., We to run "JMF Registry "which is inside the folder" \\ JMF2.1.1e \\ bin . " NOTE: If using JMF in Windows Vista / 7 you have to run this program with Administrator permissions.
After running the program select the tab "Capture Devices" and click on the button "Detect Capture Devices" and wait until the program ends to scanning. When finished we will have a window similar to the following:
This window is important to note the capture device name, location and format that enables. In my case I have the following:
Device Name: "vfw: Microsoft WDM Image Capture (Win32): 0"
Location: "vfw: / / 0 "
These values \u200b\u200bare then use to refer to the device from the program. Finally press the "Commit" to apply the changes and close the window, so we registered with the JMF video capture device.
Entering programming, classes that use it to develop example is the following, all found in the package file javax.media JMF.jar found in "\\ JMF2.1.1e \\ lib".
CaptureDeviceInfo
Contains information about the capture device deployed.
Contains information about the capture device deployed.
CaptureDeviceManager
class that provides information from different capture devices that are available in the system.
Manager
This class provides access to system resources through JFM.
MediaLocator
This class allows us to identify the location of a multimedia content source device through its URL (Uniform Resource Locator).
Player (Interface)
A
videoformat (Javax.media.format package)
Encapsulates format information for video data. attributes of a
Player is an object used to control and process multimedia data a content type specific data, eg audio or video . videoformat (Javax.media.format package)
Encapsulates format information for video data. attributes of a
videoformat include the encoding type, size, frame rate and type of data. For other video formats see the reference page .