Table of Contents

Method ToggleOutput

Namespace
OBSStudioClient
Assembly
OBSClient.dll

ToggleOutput(string, CancellationToken)

Toggles the status of an output.

public Task<bool> ToggleOutput(string outputName, CancellationToken cancellationToken = default)

Parameters

outputName string

Output name.

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<bool>

Whether the output is active.