Table of Contents

Method GetRecordDirectoryAsync

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

GetRecordDirectoryAsync(CancellationToken)

Asks OBS Studio for the folder that it records to.

public Task<string> GetRecordDirectoryAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token that ends the wait. A request that was not sent yet is not sent.

Returns

Task<string>

The folder, as OBS Studio writes it (a path of the computer that OBS Studio runs on).

Remarks

The folder belongs to the profile (ObsProfiles), and OBS Studio does not announce a change of it, so the model does not keep it: ask when you need it. It is the folder of the output mode that the profile is in (simple or advanced). The file that a recording is written to is said by the output itself (CurrentFile).

Exceptions

ObsNotConnectedException

There is no connection to OBS Studio.

ObsNotReadyException

OBS Studio is changing its scene collection, or did so after the call.

TimeoutException

OBS Studio did not answer in time (WriteTimeout).