Method CreateSourceFilter
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
CreateSourceFilter(SourceRef, string, string, Dictionary<string, object>?, Guid?, CancellationToken)
Creates a new filter, adding it to the specified source.
public Task CreateSourceFilter(SourceRef source, string filterName, string filterKind, Dictionary<string, object>? filterSettings = null, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sourceSourceRefThe source to add the filter to, by name or by UUID.
filterNamestringName of the new filter to be created.
filterKindstringThe kind of filter to be created.
filterSettingsDictionary<string, object>Settings object to initialize the filter with. If omitted: Default settings used.
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.