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