new VideoRecorder( [opts])
Creates a new instance of VideoRecorder.
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options. Properties
|
Methods
-
configure( [opts])
-
Configures video recorder.
Parameters:
Name Type Argument Description optsobject <optional>
recorder configuration
Properties
Name Type Argument Default Description pathstring <optional>
video file path
fpsnumber <optional>
30 video framerate
widthnumber <optional>
1024 video width
heightnumber <optional>
768 video height
xnumber <optional>
0 X-offset on displayynumber <optional>
0 Y-offset on display -
start()
-
Starts video recorder.
Throws:
-
-
if video recorder is started already
- Type
- Error
-
-
-
if video recorder isn't configured yet
- Type
- Error
-
-
-
stop()
-
Stops video recorder.
Throws:
-
if video recorder isn't started yet
- Type
- Error
-