public class DSCaptureDevice extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DSCaptureDevice.ISampleGrabberCB
The Java equivalent of the DirectShow ISampleGrabberCB interface
as it is utilized by DSCaptureDevice.
|
| Constructor and Description |
|---|
DSCaptureDevice(long ptr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connects to this DirectShow video capture device.
|
void |
disconnect()
Disconnects from this DirectShow video capture device.
|
DSFormat |
getFormat()
Get current format.
|
String |
getName()
Get name of the capture device.
|
DSFormat[] |
getSupportedFormats()
Get the supported video format this capture device supports.
|
void |
setDelegate(DSCaptureDevice.ISampleGrabberCB delegate)
Set a delegate to use when a frame is received.
|
int |
setFormat(DSFormat format)
Set format to use with this capture device.
|
int |
start() |
int |
stop() |
public static final int S_FALSE
public static final int S_OK
public DSCaptureDevice(long ptr)
ptr - native pointerpublic void connect()
public void disconnect()
public DSFormat getFormat()
public String getName()
public DSFormat[] getSupportedFormats()
public void setDelegate(DSCaptureDevice.ISampleGrabberCB delegate)
delegate - delegatepublic int setFormat(DSFormat format)
format - format to setpublic int start()
public int stop()
Copyright © 2022 jitsi.org. All rights reserved.