Class QTCaptureDevice
- java.lang.Object
-
- org.jitsi.impl.neomedia.quicktime.NSObject
-
- org.jitsi.impl.neomedia.quicktime.QTCaptureDevice
-
public class QTCaptureDevice extends NSObject
Represents a QTKit capture device which is connected or has been previously connected to the user's computer during the lifetime of the application.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description QTCaptureDevice(long ptr)Initializes a new QTCaptureDevice instance which is to represent a specific QTKit QTCaptureDevice object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Releases application control over this device acquired in theopen()method.static QTCaptureDevicedeviceWithUniqueID(String deviceUID)Gets the QTCaptureDevice with a specific unique identifier.protected voidfinalize()Called by the garbage collector to release system resources and perform other cleanup.QTFormatDescription[]formatDescriptions()doublegetVideoMinFrameDuration()static QTCaptureDevice[]inputDevicesWithMediaType(QTMediaType mediaType)booleanisConnected()Gets the indicator which determines whether this QTCaptureDevice is connected and available to applications.StringlocalizedDisplayName()Gets the localized human-readable name of this QTCaptureDevice.booleanopen()Attempts to give the application control over this QTCaptureDevice so that it can be used for capture.doublesetVideoMinFrameDuration(double videoMinframeDuration)StringuniqueID()Gets the unique identifier of this QTCaptureDevice.
-
-
-
Method Detail
-
close
public void close()
Releases application control over this device acquired in theopen()method.
-
deviceWithUniqueID
public static QTCaptureDevice deviceWithUniqueID(String deviceUID)
Gets the QTCaptureDevice with a specific unique identifier.- Parameters:
deviceUID- the unique identifier of the QTCaptureDevice to be retrieved- Returns:
- the QTCaptureDevice with the specified unique identifier if such a QTCaptureDevice exists; otherwise, null
-
finalize
protected void finalize()
Called by the garbage collector to release system resources and perform other cleanup.- Overrides:
finalizein classObject- See Also:
Object.finalize()
-
formatDescriptions
public QTFormatDescription[] formatDescriptions()
-
inputDevicesWithMediaType
public static QTCaptureDevice[] inputDevicesWithMediaType(QTMediaType mediaType)
-
isConnected
public boolean isConnected()
Gets the indicator which determines whether this QTCaptureDevice is connected and available to applications.- Returns:
- true if this QTCaptureDevice is connected and available to applications; otherwise, false
-
localizedDisplayName
public String localizedDisplayName()
Gets the localized human-readable name of this QTCaptureDevice.- Returns:
- the localized human-readable name of this QTCaptureDevice
-
open
public boolean open() throws NSErrorExceptionAttempts to give the application control over this QTCaptureDevice so that it can be used for capture.- Returns:
- true if this device was opened successfully; otherwise, false
- Throws:
NSErrorException- if this device was not opened successfully and carries an NSError describing why this device could not be opened
-
uniqueID
public String uniqueID()
Gets the unique identifier of this QTCaptureDevice.- Returns:
- the unique identifier of this QTCaptureDevice
-
getVideoMinFrameDuration
public double getVideoMinFrameDuration()
-
setVideoMinFrameDuration
public double setVideoMinFrameDuration(double videoMinframeDuration)
-
-