Skip to content

ScreencastOptions

Namespace: PuppeteerSharp

public class ScreencastOptions

Options for ScreencastAsync(ScreencastOptions).

Inheritance: object

View source

public int? Colors { get; set; }

Specifies the maximum number of palette colors to quantize.

Value: int?

View source

public BoundingBox Crop { get; set; }

Specifies the region of the viewport to crop.

Value: BoundingBox

View source

public int? Delay { get; set; }

Specifies the delay between iterations of a loop, in ms.

Value: int?

View source

public string FfmpegPath { get; set; }

Path to the ffmpeg executable. Required if ffmpeg is not in your PATH.

Value: string

View source

public string Format { get; set; }

Specifies the output video format.

Value: string

View source

public int? Fps { get; set; }

Specifies the frame rate in frames per second.

Value: int?

View source

public double? Loop { get; set; }

Specifies the number of times to loop playback.

Value: double?

View source

public bool? Overwrite { get; set; }

Specifies whether to overwrite the output file if it already exists. Defaults to true. When false, an existing file causes an IOException.

Value: bool?

View source

public string Path { get; set; }

File path to save the screencast to.

Value: string

View source

public int? Quality { get; set; }

Specifies the recording quality (Constant Rate Factor between 0-63).

Value: int?

View source

public decimal? Scale { get; set; }

Scales the output video. For example, 0.5 will shrink the width and height of the output video by half. 2 will double the width and height of the output video.

Value: decimal?

View source

public decimal? Speed { get; set; }

Specifies the speed to record at. For example, 0.5 will slowdown the output video by 50%. 2 will double the speed of the output video.

Value: decimal?

View source

Made with love by Dario Kondratiuk