toggleReplayBuffer method
Toggles the state of the replay buffer output.
- Complexity Rating: 1/5
- Latest Supported RPC Version: 1
- Added in v5.0.0
Implementation
Future<bool> toggleReplayBuffer() async {
final response = await obsWebSocket.sendRequest(
Request('ToggleReplayBuffer'),
);
if (response?.requestStatus.code != 100) {
throw Exception('${response?.requestStatus.comment}');
}
return BooleanResponse.fromJson(response!.responseData!).enabled;
}