sleep method
Sleeps for a time duration or number of frames. Only available in request batches with types SERIAL_REALTIME or SERIAL_FRAME.
- Complexity Rating: 2/5
- Latest Supported RPC Version: 1
- Added in v5.0.0
Implementation
Future<void> sleep({
int? sleepMillis,
int? sleepFrames,
}) async =>
await obsWebSocket.sendRequest(Request(
'Sleep',
requestData: {
'sleepMillis': sleepMillis,
'sleepFrames': sleepFrames,
}..removeWhere((key, value) => value == null),
));