Class DSCaptureDevice
- java.lang.Object
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.directshow.DSCaptureDevice
-
public class DSCaptureDevice extends Object
DirectShow capture device.- Author:
- Sebastien Vincent, Lyubomir Marinov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDSCaptureDevice.ISampleGrabberCBThe Java equivalent of the DirectShow ISampleGrabberCB interface as it is utilized by DSCaptureDevice.
-
Constructor Summary
Constructors Constructor Description DSCaptureDevice(long ptr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()Connects to this DirectShow video capture device.voiddisconnect()Disconnects from this DirectShow video capture device.DSFormatgetFormat()Get current format.StringgetName()Get name of the capture device.DSFormat[]getSupportedFormats()Get the supported video format this capture device supports.voidsetDelegate(DSCaptureDevice.ISampleGrabberCB delegate)Set a delegate to use when a frame is received.intsetFormat(DSFormat format)Set format to use with this capture device.intstart()intstop()
-
-
-
Field Detail
-
S_FALSE
public static final int S_FALSE
- See Also:
- Constant Field Values
-
S_OK
public static final int S_OK
- See Also:
- Constant Field Values
-
-
Method Detail
-
connect
public void connect()
Connects to this DirectShow video capture device.
-
disconnect
public void disconnect()
Disconnects from this DirectShow video capture device.
-
getFormat
public DSFormat getFormat()
Get current format.- Returns:
- current format used
-
getName
public String getName()
Get name of the capture device.- Returns:
- name of the capture device
-
getSupportedFormats
public DSFormat[] getSupportedFormats()
Get the supported video format this capture device supports.- Returns:
- array of DSFormat
-
setDelegate
public void setDelegate(DSCaptureDevice.ISampleGrabberCB delegate)
Set a delegate to use when a frame is received.- Parameters:
delegate- delegate
-
setFormat
public int setFormat(DSFormat format)
Set format to use with this capture device.- Parameters:
format- format to set- Returns:
- an HRESULT value indicating whether the specified format was successfully set or describing a failure
-
start
public int start()
-
stop
public int stop()
-
-