12 Eylül 2019 Perşembe

JMF CaptureDeviceManager Sınıfı

Giriş
Şu satırı dahil ederiz.
import javax.media.CaptureDeviceManager;
getDeviceList metodu
Açıklaması şöyle
CaptureDeviceManager.getDeviceList(Format format) does not detect devices. Instead it reads from the JMF registry which is the jmf.properties file. It searches for the jmf.properties file in the classpath.

If your JMF install has succeeded, then the classpath would have been configured to include all the relevant JMF jars and directories. The JMF install comes with a jmf.properties file included in the 'lib' folder under the JMF installation directory.
Örnek
Şöyle yaparız.
Vector audioDevices = CaptureDeviceManager.getDeviceList(new AudioFormat(null));
Örnek
Şöyle yaparız.
Vector videoDevices = CaptureDeviceManager.getDeviceList(new VideoFormat(null));

Hiç yorum yok:

Yorum Gönder