public interface VideoCapturer
Modifier and Type | Method and Description |
---|---|
Picture |
captureScreen()
Method that captures the screen
|
FrameSequencer |
getFrameSequencer()
Method to get the frame sequencer
|
int |
getFramesPerSecond()
Method to return the number of frames per second
|
java.awt.Rectangle |
getRegion()
Method to get the region to capture
|
void |
playMovie()
Method to play the captured movie
|
void |
setFramesPerSecond(int frameRate)
Method to set the number of frames per second
|
void |
setRegion(java.awt.Rectangle region)
Method that sets a region to capture
|
void |
startCapture()
Method to start the capture
|
void |
startCapture(int numSeconds)
Method to start the capture and capture numSeconds of video
|
void |
stopCapture()
Method to stop the capture
|
Picture captureScreen() throws java.lang.Exception
java.lang.Exception
void setRegion(java.awt.Rectangle region)
region
- the rectangular region to capturevoid startCapture()
void startCapture(int numSeconds)
numSeconds
- the number of seconds to capturevoid stopCapture()
void playMovie()
FrameSequencer getFrameSequencer()
java.awt.Rectangle getRegion()
int getFramesPerSecond()
void setFramesPerSecond(int frameRate)
frameRate
- the number of frames per second being captured