Configure screen capture settings in K21
The setCapturer
method configures how K21 captures screen content. It allows you to control parameters like frame rate, duration, and where to save the captured content.
The configuration object accepts the following parameters:
Parameter | Type | Default | Description |
---|---|---|---|
fps | number | 1 | Frames per second for capture |
duration | number | 10 | Total duration of capture in seconds |
saveScreenshotTo | string | undefined | Path where screenshots should be saved. If not provided, screenshots won’t be saved |
saveVideoTo | string | undefined | Path where video should be saved. If not provided, video won’t be saved |
videoChunkDuration | number | 60 | Duration of each video chunk in seconds |
If you call setCapturer()
without any configuration, these default values will be used:
The method will throw an error in these cases:
Configure screen capture settings in K21
The setCapturer
method configures how K21 captures screen content. It allows you to control parameters like frame rate, duration, and where to save the captured content.
The configuration object accepts the following parameters:
Parameter | Type | Default | Description |
---|---|---|---|
fps | number | 1 | Frames per second for capture |
duration | number | 10 | Total duration of capture in seconds |
saveScreenshotTo | string | undefined | Path where screenshots should be saved. If not provided, screenshots won’t be saved |
saveVideoTo | string | undefined | Path where video should be saved. If not provided, video won’t be saved |
videoChunkDuration | number | 60 | Duration of each video chunk in seconds |
If you call setCapturer()
without any configuration, these default values will be used:
The method will throw an error in these cases: