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
fpsNumeratorfloat?Numerator of the fractional FPS value. Restrictions: >= 1. If omitted: Not changed.
fpsDenominatorfloat?Denominator of the fractional FPS value. Restrictions: >= 1. If omitted: Not changed.
baseWidthint?Width of the base (canvas) resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.
baseHeightint?Height of the base (canvas) resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.
outputWidthint?Width of the output resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.
outputHeightint?Height of the output resolution in pixels. Restrictions: >= 1, <= 4096. If omitted: Not changed.
cancellationTokenCancellationTokenA 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
Remarks
Note: Fields must be specified in pairs. For example, you cannot set only baseWidth without needing to specify baseHeight.