Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.directshow
Class DSManager

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.directshow.DSManager

public class DSManager
extends Object

DirectShow capture device manager. DSManager act as a singleton. When you need it call getInstance and don't forget to call dispose() when you have finished. DSManager manager = DSManager.getInstance(); DSCaptureDevice[] devices = manager.getCaptureDevices(); // do stuff with capture devices // ... DSManager.dispose(); // do not use any of DSCaptureDevice objects obtained by // manager

Author:
Sebastien Vincent

Method Summary
static void dispose()
          Dispose the object.
 DSCaptureDevice[] getCaptureDevices()
          Get the array of capture devices.
static DSManager getInstance()
          Get the instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DSManager getInstance()
Get the instance.

Returns:
unique instance of DSManager

dispose

public static void dispose()
Dispose the object.


getCaptureDevices

public DSCaptureDevice[] getCaptureDevices()
Get the array of capture devices.

Returns:
array of DSCaptureDevices

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.