Type Alias PuppeteerScreenRecorderOptions

PuppeteerScreenRecorderOptions: {
    aspectRatio?: "3:2" | "4:3" | "16:9";
    autopad?: {
        color?: string;
    };
    ffmpeg_Path?: string | null;
    followNewTab: boolean;
    format?: "jpeg" | "png";
    fps?: number;
    metadata?: string[];
    quality?: number;
    recordDurationLimit?: number;
    videOutputOptions?: string[];
    videoBitrate?: number;
    videoCodec?: string;
    videoCrf?: number;
    videoFrame?: {
        height: number | null;
        width: number | null;
    };
    videoPixelFormat?: string;
    videoPreset?: string;
}

Type declaration

  • Optional ReadonlyaspectRatio?: "3:2" | "4:3" | "16:9"

    aspectRatio

    PuppeteerScreenRecorderOptions

    Specify the aspect ratio of the video. Default value is 4:3.

    4:3
    
  • Optional Readonlyautopad?: {
        color?: string;
    }

    autopad

    PuppeteerScreenRecorderOptions

    Specify whether autopad option is used and its color. Default to autopad deactivation mode.

    • Optionalcolor?: string
  • Optional Readonlyffmpeg_Path?: string | null

    ffmpeg_Path

    PuppeteerScreenRecorderOptions

    String value pointing to the installation of FFMPEG. Default is null (Automatically install the FFMPEG and use it).

    null
    
  • ReadonlyfollowNewTab: boolean

    followNewTab

    PuppeteerScreenRecorderOptions

    Boolean value which is indicate whether to follow the tab or not. Default value is true.

    true
    
  • Optional Readonlyformat?: "jpeg" | "png"

    format

    PuppeteerScreenRecorderOptions

    specify the format for recording the video

    jpeg
    
  • Optional Readonlyfps?: number

    fps

    PuppeteerScreenRecorderOptions

    Numeric value which denotes no.of Frames per second in which the video should be recorded. default value is 25.

    25
    
  • Optional Readonlymetadata?: string[]

    metadata

    PuppeteerScreenRecorderOptions

    Specify metadata information as key value pairs.

  • Optional Readonlyquality?: number

    quality

    PuppeteerScreenRecorderOptions

    Numeric value which denotes no.of quality of individual frame captured by chrome. Value accepted 0 - 100. 100 denotes the highest quality and 0 denotes the lowest quality

    100
    
  • Optional ReadonlyrecordDurationLimit?: number

    recordDurationLimit

    PuppeteerScreenRecorderOptions

    Numerical value specify duration (in seconds) to record the video. By default video is recorded till stop method is invoked`. (Note: It's mandatory to invoke Stop() method even if this value is set)

  • Optional ReadonlyvideOutputOptions?: string[]

    videOutputOptions

    PuppeteerScreenRecorderOptions

    Allows you to pass additional options to the ffmpeg encoder -

    you might want to pass "-movflags +faststart"
    
  • Optional ReadonlyvideoBitrate?: number

    videoBitrate

    PuppeteerScreenRecorderOptions

    Specify the target bitrate of the final video file in bits/s. The default value is 1000.

  • Optional ReadonlyvideoCodec?: string

    videoCodec

    PuppeteerScreenRecorderOptions

    Specify the codec used by FFMPEG when creating the final video file. The default value is libx264.

  • Optional ReadonlyvideoCrf?: number

    videoCrf

    PuppeteerScreenRecorderOptions

    Specify the crf of the final video file. The default value is 23.

  • Optional ReadonlyvideoFrame?: {
        height: number | null;
        width: number | null;
    }

    videoFrame

    PuppeteerScreenRecorderOptions

    An object which specifies the width and height of the output video frame. Note: VideoFrame option is not applicable for capturing the video.

    • height: number | null
    • width: number | null
  • Optional ReadonlyvideoPixelFormat?: string

    videoPixelFormat

    PuppeteerScreenRecorderOptions

    Specify the pixel format to use when encoding the video file. The default value is 'yuv420p'.

  • Optional ReadonlyvideoPreset?: string

    videoPreset

    PuppeteerScreenRecorderOptions

    Specify the preset to use when encoding the video file. The default value is 'ultrafast'.