setInputSettings method

Future<void> setInputSettings({
  1. String? inputName,
  2. String? inputUuid,
  3. required Map<String, dynamic> inputSettings,
  4. bool? overlay,
})

Sets the settings of an input.

Note: Does not include defaults. To create the entire settings object, overlay inputSettings over the defaultInputSettings provided by GetInputDefaultSettings.

  • Complexity Rating: 3/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<void> setInputSettings({
  String? inputName,
  String? inputUuid,
  required Map<String, dynamic> inputSettings,
  bool? overlay,
}) async =>
    await obsWebSocket.sendRequest(Request(
      'SetInputSettings',
      requestData: {
        'inputName': inputName,
        'inputUuid': inputUuid,
        'inputSettings': inputSettings,
        'overlay': overlay,
      }..removeWhere((key, value) => value == null),
    ));