public class QTCaptureDevice extends NSObject
Constructor and Description |
---|
QTCaptureDevice(long ptr)
Initializes a new QTCaptureDevice instance which is to represent
a specific QTKit QTCaptureDevice object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases application control over this device acquired in the
open() method. |
static QTCaptureDevice |
deviceWithUniqueID(java.lang.String deviceUID)
Gets the QTCaptureDevice with a specific unique identifier.
|
protected void |
finalize()
Called by the garbage collector to release system resources and perform
other cleanup.
|
QTFormatDescription[] |
formatDescriptions() |
static QTCaptureDevice[] |
inputDevicesWithMediaType(QTMediaType mediaType) |
boolean |
isConnected()
Gets the indicator which determines whether this QTCaptureDevice
is connected and available to applications.
|
java.lang.String |
localizedDisplayName()
Gets the localized human-readable name of this QTCaptureDevice.
|
boolean |
open()
Attempts to give the application control over this
QTCaptureDevice so that it can be used for capture.
|
java.lang.String |
uniqueID()
Gets the unique identifier of this QTCaptureDevice.
|
public QTCaptureDevice(long ptr)
ptr
- the pointer to the QTKit QTCaptureDevice object which
is to be represented by the new instancepublic void close()
open()
method.public static QTCaptureDevice deviceWithUniqueID(java.lang.String deviceUID)
deviceUID
- the unique identifier of the QTCaptureDevice to
be retrievedprotected void finalize()
finalize
in class java.lang.Object
Object.finalize()
public QTFormatDescription[] formatDescriptions()
public static QTCaptureDevice[] inputDevicesWithMediaType(QTMediaType mediaType)
public boolean isConnected()
public java.lang.String localizedDisplayName()
public boolean open() throws NSErrorException
NSErrorException
- if this device was not opened successfully and
carries an NSError describing why this device could not be
openedpublic java.lang.String uniqueID()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.