Table of Contents

Method SetVideoSettings

Namespace
OBSStudioClient
Assembly
OBSClient.dll

SetVideoSettings(float?, float?, int?, int?, int?, int?, CancellationToken)

Sets the current video settings.

public Task SetVideoSettings(float? fpsNumerator = null, float? fpsDenominator = null, int? baseWidth = null, int? baseHeight = null, int? outputWidth = null, int? outputHeight = null, CancellationToken cancellationToken = default)

Parameters

fpsNumerator float?

Numerator of the fractional FPS value. Restrictions: >= 1. If omitted: Not changed.

fpsDenominator float?

Denominator of the fractional FPS value. Restrictions: >= 1. If omitted: Not changed.

baseWidth int?

Width of the base (canvas) resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.

baseHeight int?

Height of the base (canvas) resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.

outputWidth int?

Width of the output resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.

outputHeight int?

Height of the output resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.

cancellationToken CancellationToken

A token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.

Returns

Task

Remarks

Note: Fields must be specified in pairs. For example, you cannot set only baseWidth without needing to specify baseHeight.