|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teamdev.jxcapture.VideoCapture
com.teamdev.jxcapture.video.mac.SnowLeopardVideoCapture
public class SnowLeopardVideoCapture
This class provides video capturing functionality for MAC OS X 10.5 and 10.6
| Field Summary | |
|---|---|
protected java.util.List<Codec> |
codecs
|
protected com.jniwrapper.Library |
library
|
static java.lang.String |
PROPERTY_CAPTURE_AREA
|
static java.lang.String |
PROPERTY_CAPTURE_TRANSPARENT_WINDOWS
|
static java.lang.String |
PROPERTY_INCLUDE_CURSOR
|
| Fields inherited from class com.teamdev.jxcapture.VideoCapture |
|---|
PROPERTY_AUDIO_SOURCE, PROPERTY_FRAMERATE, PROPERTY_VIDEO_SOURCE |
| Constructor Summary | |
|---|---|
SnowLeopardVideoCapture()
|
|
SnowLeopardVideoCapture(VideoSource videoSource)
Creates video capture instance. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add the specified property listener. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add the specified property listener. |
protected void |
doPause()
Performs the steps required to pause a video capture process. |
protected void |
doStart()
Performs the steps required to start a video capture process. |
protected void |
doStop()
Performs the steps required to stop a video capture process. |
java.util.List<AudioCodec> |
getAudioCodecs()
Returns the list of audio codecs that this video capture can provide. |
java.awt.Rectangle |
getCaptureArea()
|
protected java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
|
protected Codec |
getVideoCodec(EncodingParameters parameters)
|
java.util.List<Codec> |
getVideoCodecs()
Returns the list of video codecs that this video capture can provide. |
VideoFormat |
getVideoFormat()
Returns the video format that this video capture provides. |
void |
initNativeController(VideoSource source)
|
boolean |
isCaptureTransparentWindows()
Returns true if the capture operation allows to capture
transparent or layered windows, otherwise - false. |
boolean |
isIncludeCursor()
Determines whether the resulting image of the capture operation includes the cursor image. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove the specified property listener. |
void |
setCaptureArea(java.awt.Rectangle area)
|
void |
setCaptureAreaToNativeController(java.awt.Rectangle captureRectangle)
|
void |
setCaptureMouseToNativeController(boolean captureMouse)
|
void |
setCaptureTransparentWindows(boolean captureTransparentWindows)
Sets true if the captureTransparentWindows operation should allow to captureTransparentWindows
transparent or layered windows, otherwise - false. |
void |
setCodecToNativeController(Codec codec)
|
void |
setFramerateToNativeController(int framerate)
|
void |
setIncludeCursor(boolean includeCursor)
Includes (or excludes) the cursor image to (or from) the resulting image of the capture operation. |
void |
setKeyFrameToNativeController(int keyFrameInterval)
|
void |
setOutputDimensionsToNativeController(double width,
double height)
|
void |
setPathToNativeController(java.lang.String path)
|
void |
setQualityToNativeController(int quality)
|
void |
startNativeController()
|
void |
stopNativeController()
|
protected void |
validate(EncodingParameters encodingParameters)
Validates encoding settings. |
| Methods inherited from class com.teamdev.jxcapture.VideoCapture |
|---|
create, create, getAudioSource, getAvailableFormats, getEncodingParameters, getFramerate, getVideoSource, isAvailable, isStarted, pause, setAudioSource, setEncodingParameters, setFramerate, setFramerate, setVideoSource, start, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Codec> codecs
protected final com.jniwrapper.Library library
public static final java.lang.String PROPERTY_CAPTURE_AREA
public static final java.lang.String PROPERTY_INCLUDE_CURSOR
public static final java.lang.String PROPERTY_CAPTURE_TRANSPARENT_WINDOWS
| Constructor Detail |
|---|
public SnowLeopardVideoCapture()
public SnowLeopardVideoCapture(VideoSource videoSource)
videoSource - required video source| Method Detail |
|---|
public void setCaptureMouseToNativeController(boolean captureMouse)
public void setPathToNativeController(java.lang.String path)
public void setFramerateToNativeController(int framerate)
public void setQualityToNativeController(int quality)
public void setOutputDimensionsToNativeController(double width,
double height)
public void setCaptureAreaToNativeController(java.awt.Rectangle captureRectangle)
public void setCodecToNativeController(Codec codec)
public void setKeyFrameToNativeController(int keyFrameInterval)
public void initNativeController(VideoSource source)
public void startNativeController()
public void stopNativeController()
protected void doStart()
VideoCapture
doStart in class VideoCaptureprotected void doStop()
VideoCapture
doStop in class VideoCaptureprotected Codec getVideoCodec(EncodingParameters parameters)
protected void doPause()
VideoCapture
doPause in class VideoCaptureprotected void validate(EncodingParameters encodingParameters)
VideoCapture
validate in class VideoCaptureencodingParameters - specifies video encoding settingspublic VideoFormat getVideoFormat()
VideoCapture
getVideoFormat in class VideoCapturepublic java.util.List<Codec> getVideoCodecs()
VideoCapture
getVideoCodecs in class VideoCaptureCodec objects.public java.util.List<AudioCodec> getAudioCodecs()
VideoCapture
getAudioCodecs in class VideoCaptureCodec objects.protected java.beans.PropertyChangeSupport getPropertyChangeSupport()
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
propertyName - property namelistener - listenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - listenerpublic java.awt.Rectangle getCaptureArea()
public void setCaptureArea(java.awt.Rectangle area)
area - required rectangular capture areapublic boolean isIncludeCursor()
true if the result of the capture operation
includes the cursor image, false otherwisepublic void setIncludeCursor(boolean includeCursor)
includeCursor - If true, this cursor image is
included into the result of the capture operation;
otherwise notpublic boolean isCaptureTransparentWindows()
true if the capture operation allows to capture
transparent or layered windows, otherwise - false.
A layered or transparent window is used by some applications to create a fade-in/out effect for menus and windows. Layered windows are also used for desktop animation, such as animated help assistants.
true if the capture transparent or layered window
option is set, otherwise - falsepublic void setCaptureTransparentWindows(boolean captureTransparentWindows)
true if the captureTransparentWindows operation should allow to captureTransparentWindows
transparent or layered windows, otherwise - false.
A layered or transparent window is used by some applications to create a fade-in/out effect for menus and windows. Layered windows are also used for desktop animation, such as animated help assistants.
captureTransparentWindows - true if the captureTransparentWindows operation should allow
to captureTransparentWindows transparent or layered window, otherwise -
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||