Skip to main content
This page describes the custom video preset PreOptionCustomVideo and the publish-time custom parameters PublishCustomOptions. In meetings, whiteboard/sharing data capture for cloud recording (getShareCustomVideoTrack, enableCourseRecordTrack) uses a custom video track. For the general preset structure (capture configuration + publish configuration), see Camera presets.

PreOptionCustomVideo

Purpose: Custom video track preset that combines custom capture parameters and video publish parameters.

Structure

PreOptionCustomVideo(capture: CustomVideoCaptureOptions, publish: VideoPublishOptions)

Capture configuration CustomVideoCaptureOptions

Purpose: Configures custom video capture parameters.

Publish configuration VideoPublishOptions

Purpose: Same structure as the video publish parameters (for fields, see Camera presets).
  • The default custom video preset uses desc = TRACK_CUSTOM
  • The screen preset uses desc = TRACK_SHARE

Built-in presets

Purpose: The SDK provides two custom video presets, PreOptionCustomVideo.def and PreOptionCustomVideo.screen.

Publish-time custom parameters: PublishCustomOptions

Purpose: Overrides the preset’s publish parameters at publish time, mainly used to customize the track desc.

Fields

Recommendations

  • If you only need to change the track description, just pass desc.
  • For the camera’s high and low streams (TRACK_MAIN / TRACK_SUB), you can override the low stream parameters separately through simulcasts.
  • For the mic, screen sharing, and custom video, you usually only need the main track parameters and don’t need simulcasts.