Class: VideoRecorder

VideoRecorder

contains methods to record video for tests


new VideoRecorder( [opts])

Creates a new instance of VideoRecorder.

Parameters:
Name Type Argument Description
opts object <optional>

Options.

Properties
Name Type Argument Description
_process object <optional>

Injected process module.

_which object <optional>

Injected which module.

_spawn object <optional>

Injected spawn module.

Properties:
Name Type Argument Default Description
isRunning boolean <optional>
false

flag is video recorder running or no

filePath string <optional>
<nullable>
null

path video file

Source:

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 display

y number <optional>
0

Y-offset on display

Source:

start()

Starts video recorder.

Source:
Throws:
  • if video recorder is started already

    Type
    Error
  • if video recorder isn't configured yet

    Type
    Error

stop()

Stops video recorder.

Source:
Throws:

if video recorder isn't started yet

Type
Error