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