public class NCaptureDevice extends NDevice
NDevice.ChildCollection| Modifier and Type | Method and Description |
|---|---|
void |
addCapturingChangedListener(com.neurotec.event.ChangeListener listener)
Adds user specified listener for device capturing changed event.
|
com.neurotec.media.NMediaFormat |
getCurrentFormat()
Gets current media format of the capture device.
|
com.neurotec.media.NMediaFormat[] |
getFormats()
Gets all supported formats by the capture device.
|
com.neurotec.media.NMediaType |
getMediaType()
Retrieves the media type of the device.
|
boolean |
isCapturing()
Checks if the device is capturing.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
removeCapturingChangedListener(com.neurotec.event.ChangeListener listener)
Removes listener for device capturing changed event.
|
void |
setCurrentFormat(com.neurotec.media.NMediaFormat format)
Sets current media format for the capture device.
|
void |
startCapturing()
Starts capturing.
|
void |
stopCapturing()
Stops capturing.
|
getChildren, getDeviceType, getDisplayName, getId, getMake, getModel, getOwner, getParent, getPlugin, getSerialNumber, isAvailable, isDisconnectable, isPrivateaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static com.neurotec.lang.NType nativeTypeOf()
public final void startCapturing()
public final void stopCapturing()
public com.neurotec.media.NMediaFormat[] getFormats()
public com.neurotec.media.NMediaFormat getCurrentFormat()
public void setCurrentFormat(com.neurotec.media.NMediaFormat format)
format - Current media format to set.public final boolean isCapturing()
public final com.neurotec.media.NMediaType getMediaType()
public final void addCapturingChangedListener(com.neurotec.event.ChangeListener listener)
listener - User specified listener.public final void removeCapturingChangedListener(com.neurotec.event.ChangeListener listener)
listener - User specified listener to remove.Copyright © 2016 Neurotechnology. All rights reserved.