Method SetSourceFilterEnabled
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
SetSourceFilterEnabled(SourceRef, string, bool, Guid?, CancellationToken)
Sets the enable state of a source filter.
public Task SetSourceFilterEnabled(SourceRef source, string filterName, bool filterEnabled, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sourceSourceRefThe source the filter is on, by name or by UUID.
filterNamestringName of the filter.
filterEnabledboolNew enable state of the filter.
canvasUuidGuid?UUID of the canvas the source is in, if the source is given by name.
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.