Method GetLastReplayFileAsync
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
GetLastReplayFileAsync(CancellationToken)
Asks OBS Studio for the path of the newest replay that it saved.
public Task<string> GetLastReplayFileAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that ends the wait. A request that was not sent yet is not sent.
Returns
Remarks
It is asked in its turn, after the changes that were asked for before it (see SetEnabledAsync(bool, CancellationToken)), so the path of a replay that was saved by a SaveAsync(CancellationToken) before it is the one that comes back, once OBS Studio has written the file.
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).
- ObsResponseException
OBS Studio refused the request: the replay buffer is not running.