Method GetSourceActive
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
GetSourceActive(SourceRef, Guid?, CancellationToken)
Gets the active and show state of a source.
public Task<SourceActiveResponse> GetSourceActive(SourceRef source, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sourceSourceRefThe source to get the active state of, by name or by UUID.
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.
Returns
- Task<SourceActiveResponse>
A SourceActiveResponse with the response data.
Remarks
**Compatible with inputs and scenes.**.