Options
All
  • Public
  • Public/Protected
  • All
Menu

Capture video option interface.

Hierarchy

  • CaptureVideoOption

Index

Properties

cameraId?: string | typeof MobileVideoFacingMode

Camera ID for the camera capturing the video, if not specified, use system default.

captureHeight?: number

Customized height of capture.

Note: Only applicable for specifying the custom height for cameras with resolutions that are not in the standard 16:9 or 4:3 aspect ratios. If you need HD (720P) or full HD (1080P) resolution, use the hd or fullHd options.

captureWidth?: number

Customized width of capture.

Note: Only applicable for specifying the custom width for cameras with resolutions that are not in the standard 16:9 or 4:3 aspect ratios. If you need HD (720P) or full HD (1080P) resolution, use the hd or fullHd options.

fps?: number

Specify the maximum frames per second (FPS) limitation. This is limited to between 10-30 FPS (inclusive). The default is 24 FPS.

fullHd?: boolean

Determines whether capture 1080p video is enabled.

hd?: boolean

Determines whether capture 720p video is enabled.

mask?: MaskOption

Mask option. Virtual background and mask are mutually exclusive, you can enable either virtual background or mask, not both.

mediaFile?: MediaPlaybackFile

Specify a media file as the video input.

  • If you need to use the same playback as audio and video input, when you stop video, the audio output will also be paused.
mirrored?: boolean

Determines whether self video is mirrored.

originalRatio?: boolean

Whether to capture the video in the original ratio, the default is to crop the ratio to 16:9.

ptz?: boolean

Determines whether to enable Pan-Tilt-Zoom (PTZ) when capturing video.

videoElement?: HTMLVideoElement
deprecated

2.0.0

Note will be removed in 2.x version, please use stream.attachVideo to render self-view directly. Video element. Only used in Android platform or non-SharedArrayBuffer Chromium-like browsers.

virtualBackground?: { cropped?: boolean; imageUrl: undefined | string }

Virtual background options.

Type declaration

  • Optional cropped?: boolean

    Determines whether to crop the background image to an appropriate aspect ratio (16/9), default is false.

  • imageUrl: undefined | string

    Image URL for the virtual background.

    • If set a specific image, the URL can be a regular HTTP or HTTPS URL, base64 format, or ObjectURL.
    • 'blur' : Blurs the background.
    • undefined : no virtual background.