Method GetDeinterlaceModeAsync
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
GetDeinterlaceModeAsync(CancellationToken)
Asks OBS Studio how the video of the input is deinterlaced.
public Task<ObsDeinterlaceMode> GetDeinterlaceModeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that ends the wait. A request that was not sent yet is not sent.
Returns
- Task<ObsDeinterlaceMode>
The mode.
Remarks
OBS Studio does not announce a change of the deinterlacing, so the model does not keep it: ask when you need it. Only inputs that deliver their frames from outside (capture devices, media) can be deinterlaced. The request is made in its turn, after the changes that were asked for before it.
Exceptions
- ObsRemovedException
The input was destroyed.
- 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 input is not an async input (ErrorCode is InvalidResourceState), or its obs-websocket is older than 5.6.0.