getInputList method
Gets an array of all inputs in OBS.
- Complexity Rating: 2/5
- Latest Supported RPC Version: 1
- Added in v5.0.0
Implementation
Future<List<Input>> getInputList(String? inputKind) async {
final response = await obsWebSocket.sendRequest(Request(
'GetInputList',
requestData: {'inputKind': inputKind}
..removeWhere((key, value) => value == null),
));
if (response == null || response.responseData == null) return <Input>[];
return InputKindResponse.fromJson(response.responseData!).inputs;
}