getCurrentPreset method
Via this command the last Imaging Preset applied can be requested. If the camera configuration does not match any of the existing Imaging Presets, the output of GetCurrentPreset shall be Empty. GetCurrentPreset shall return 0 if Imaging Presets are not supported by the Video Source.
ACCESS CLASS: READ_MEDIA
Implementation
Future<ImagingPreset> getCurrentPreset(String videoSourceToken,
{int? limit = 100}) async {
loggy.debug('getCurrentPreset');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: ImagingRequest.getCurrentPreset(videoSourceToken),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetCurrentPresetResponse.fromJson(responseEnvelope.body.response!)
.preset;
}