setInputAudioMonitorType method
Future<void>
setInputAudioMonitorType({
- String? inputName,
- String? inputUuid,
- required ObsMonitoringType monitorType,
Sets the audio monitor type of an input.
- Complexity Rating: 3/5
- Latest Supported RPC Version: 1
- Added in v5.0.0
Implementation
Future<void> setInputAudioMonitorType({
String? inputName,
String? inputUuid,
required ObsMonitoringType monitorType,
}) async {
if (inputName == null && inputUuid == null) {
throw ArgumentError('inputName or inputUuid must be provided');
}
await obsWebSocket.sendRequest(
Request(
'SetInputAudioMonitorType',
requestData: {
'inputName': inputName,
'inputUuid': inputUuid,
'monitorType': monitorType.code,
},
),
);
}