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 opts
object <optional>
recorder configuration
Properties
Name Type Argument Default Description path
string <optional>
video file path
fps
number <optional>
30 video framerate
width
number <optional>
1024 video width
height
number <optional>
768 video height
x
number <optional>
0 X
-offset on displayy
number <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
-