Table of Contents

Method TriggerMediaInputAction

Namespace
OBSStudioClient
Assembly
OBSClient.dll

TriggerMediaInputAction(InputRef, ObsMediaInputAction, CancellationToken)

Triggers an action on a media input.

public Task TriggerMediaInputAction(InputRef input, ObsMediaInputAction mediaAction, CancellationToken cancellationToken = default)

Parameters

input InputRef

The media input, by name or by UUID.

mediaAction ObsMediaInputAction

Identifier of the ObsMediaInputAction enum.

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