setCurrentPreset method
The setCurrentPreset command shall request a given Imaging Preset to be applied to the specified Video Source. SetCurrentPreset shall only be available for Video Sources with Imaging Presets Capability. Imaging Presets are defined by the Manufacturer, and offered as a tool to simplify Imaging Settings adjustments for specific scene content. When the new Imaging Preset is applied by SetCurrentPreset, the Device shall adjust the Video Source settings to match those defined by the specified Imaging Preset.
Access Class: ACTUATE
Implementation
Future<bool> setCurrentPreset({
required String videoSourceToken,
required String presetToken,
}) async {
loggy.debug('setCurrentPreset');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: ImagingRequest.setCurrentPreset(
videoSourceToken: videoSourceToken,
presetToken: presetToken,
),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}