Table of Contents

Method AddSleepRequest

Namespace
OBSStudioClient.Messages
Assembly
OBSClient.dll

AddSleepRequest(int?, int?)

Adds a request to sleep for a time duration or number of frames. Only available in request batches with types SERIAL_REALTIME or SERIAL_FRAME.

public void AddSleepRequest(int? sleepMillis, int? sleepFrames)

Parameters

sleepMillis int?

Number of milliseconds to sleep for (if SERIAL_REALTIME mode, between 0 and 50000)

sleepFrames int?

Number of frames to sleep for (if SERIAL_FRAME mode, between 0 and 10000)

Exceptions

NotSupportedException

Both or none of sleepMillis and sleepFrames are set.

ArgumentOutOfRangeException

The value is out of range.